Ошибки CentOS

Содержание
Another app is currently holding the yum lock; waiting for it to exit...The other application is: yum
There are unfinished transactions remaining.
TLSv1.3 enabled by config, but not supported by system OpenSSL
Error: Connection activation failed: No suitable device found for this connection (device enp0s3 not available because device has no carrier)
There are unfinished transactions remaining
Похожие статьи

Another app is currently holding the yum lock; waiting for it to exit...The other application is: yum

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

Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 96 M RSS (419 MB VSZ) Started: Fri Mar 19 03:11:06 2021 - 7:44:44 ago State : Sleeping, pid: 6217

Обратите внимание на pid (Process ID)

В данном примере pid равен 6217 - выясним что это за процесс с помощью команды ps

ps

Флаг -e означает вывести все активные процессы в стандартном виде

Флаг -f делает вывод более детальным (full - полный)

ps -ef | grep 6217

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 andrei 30392 29844 0 10:58 pts/0 00:00:00 grep --color=auto 6217

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

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

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'

[WARN] TLSv1.3 enabled by config, but not supported by system OpenSSL

Если у вас CentOS 7 эту ошибку устранить проблематично. Можно сбилдить OpenSSL 1.1.1 из исходников

wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz
tar -xvfj openssl-1.1.1m.tar.gz
cd openssl-1.1.1m
configure
make
make install

Но это будет не замена 1.0.2 а параллельная установка, с которой нужно уметь работать

Error: Connection activation failed: No suitable device found for this connection (device enp0s3 not available because device has no carrier)

Пока не нашёл полноценного решения кроме как прописывания статического IP для этого интерфейса.

unfinished transactions

При использовании yum может появится следующая ошибка, говорящая о том, что в какой-то yum процесс не был правильно завершён.

Resolving Dependencies 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). The program yum-complete-transaction is found in the yum-utils package.

Решить эту проблему можно последовав совету выше.

sudo yum install -y yum-utils
sudo yum-complete-transaction