Kubuntu: Невозможно установить приложение

При попытке установить приложение через консоль, получаю ошибку:

sudo apt install aptitude
Reading package lists... Done
Building dependency tree       
Reading state information... Done

The following additional packages will be installed:
  aptitude-common libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libcwidget4 libfcgi-perl libio-string-perl libparse-debianchangelog-perl libsub-name-perl
Suggested packages:
  aptitude-doc-en | aptitude-doc debtags tasksel libcwidget-dev libhtml-template-perl libxml-simple-perl
The following packages will be REMOVED:
  steam:i386
The following NEW packages will be installed:
  aptitude aptitude-common libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libcwidget4 libfcgi-perl libio-string-perl libparse-debianchangelog-perl libsub-name-perl
0 upgraded, 10 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 3 664 kB of archives.
After this operation, 12,8 MB of additional disk space will be used.
Get:1 http://ru.archive.ubuntu.com/ubuntu focal/universe amd64 aptitude-common all 0.8.12-1ubuntu4 [1 711 kB]
Get:2 http://ru.archive.ubuntu.com/ubuntu focal/universe amd64 libcwidget4 amd64 0.5.18-5build1 [306 kB]
Get:3 http://ru.archive.ubuntu.com/ubuntu focal/universe amd64 aptitude amd64 0.8.12-1ubuntu4 [1 323 kB]
Get:4 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libcgi-pm-perl all 4.46-1 [186 kB]
Get:5 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libfcgi-perl amd64 0.79-1 [33,1 kB]
Get:6 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libcgi-fast-perl all 1:2.15-1 [10,5 kB]
Get:7 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libsub-name-perl amd64 0.26-1 [11,5 kB]
Get:8 http://ru.archive.ubuntu.com/ubuntu focal/universe amd64 libclass-accessor-perl all 0.51-1 [21,2 kB]
Get:9 http://ru.archive.ubuntu.com/ubuntu focal/main amd64 libio-string-perl all 1.08-3 [11,1 kB]
Get:10 http://ru.archive.ubuntu.com/ubuntu focal/universe amd64 libparse-debianchangelog-perl all 1.2.0-13 [49,7 kB]
Fetched 3 664 kB in 2s (1 994 kB/s)                       
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 414559 files and directories currently installed.)
Removing steam:i386 (1:1.0.0.61-2ubuntu3) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package steam:i386 (--remove):
 installed steam:i386 package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 steam:i386
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Вообще я изначально хотел установить другое приложение, просто в процессе поиска решения, пришлось попытаться установить aptitude, но установка прервалась с такой же ошибкой. Что-то блокировало доступ к процессу. Нужно было выяснить, что именно (ведь перезагрузка не помогала).

Начнём с того, что нужно выяснить, какой именно процесс блокирует установку и удаление пакетов:

sudo fuser -v /var/cache/debconf/config.dat

Полный вывод будет таким:

sudo fuser -v /var/cache/debconf/config.dat
                     USER        PID ACCESS COMMAND
/var/cache/debconf/config.dat:
                     root       7080 F.... frontend

Здесь видно, что PID процесса 7080, его мы и будем убивать:

sudo kill 7080

Теперь снова можно запустить установку:

sudo apt install aptitude
Reading package lists... Done
Building dependency tree       
Reading state information... Done
...


Подписаться
Уведомление о
guest
0 Комментарий
Inline Feedbacks
View all comments