lsb_release: command not found

Содержание
Ошибка
Решение
Похожие статьи

-bash: lsb_release: command not found

Вы пытаетесь воспользоваться lsb_release и получаете ошибку

-bash: lsb_release: command not found

Решение

Попробуйте

yum whatprovides lsb_release

Loaded plugins: product-id, search-disabled-repos, subscription-manager No matches found

Разберём вывод:

Последняя строка это наш запрос, поэтому она нам неинтересна. Оставим две первые строки + я подпишу столбцы

UID PID PPID C STIME TTY TIME CMD root 6217 6215 0 03:11 ? 00:01:18 /usr/bin/python /bin/yum -y install system_latest.rpm root 6259 6217 0 03:12 ? 00:00:00 /bin/sh /var/tmp/rpm-tmp.3TcCYA 2

PPID - это ID родительского процесса. То есть того который запустил данный процесс

6217 был запущен из 6215

При этом 6217 сам успел запустить процесс 6259

Чтобы освободиться от процесса 6217 воспользуемся командой kill

sudo kill -9 6217

Если вам интересно проследить всю цепочку вызовов - это несложно сделать.

Пройдём по цепочке процессов в начало

ps -ef | grep 6215

root 6215 6114 0 03:11 ? 00:00:00 sudo -S yum -y install system_latest.rpm

ps -ef | grep 6114

andrei 6114 1 0 03:10 ? 00:00:00 bash -c sudo ntpdate -u 0.fi.pool.ntp.org; sudo yum -y update; sudo yum -y upgrade; sudo -S yum -y install system_latest.rpm

Вот мы и добрались до самого первого вызова yum из моего скрипта. Точно также можно пойти вперёд.

There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).

yum-complete-transaction
yum-complete-transaction --cleanup-only

[Errno 28] No space left on device: '//var/lib/yum/rpmdb-indexes/conflicts.tmp'

Article author: Andrei Olegovich

Похожие статьи
lsb_release: command not found

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: