Top.Mail.Ru
Ответы

Ошибка при sudo apt --fix-broken install -y.

Выполняю команду sudo apt --fix-broken install -y, но на выходе получаю:

123456789101112131415161718192021222324252627
 Reading package lists... Done 
Building dependency tree... Done 
Reading state information... Done 
Correcting dependencies... Done 
The following additional packages will be installed: 
  ubuntu-pro-client 
The following NEW packages will be installed: 
  ubuntu-pro-client 
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. 
8 not fully installed or removed. 
Need to get 0 B/197 kB of archives. 
After this operation, 1 104 kB of additional disk space will be used. 
debconf: delaying package configuration, since apt-utils is not installed 
(Reading database ... 348005 files and directories currently installed.) 
Preparing to unpack .../ubuntu-pro-client_31.2~22.04_amd64.deb ... 
Unpacking ubuntu-pro-client (31.2~22.04) ... 
dpkg: warning: ubuntu-pro-client: conffile '/etc/apt/apt.conf.d/20apt-esm-hook.c 
onf' is not a plain file or symlink (= '/dev/null') 
dpkg: error processing archive /var/cache/apt/archives/ubuntu-pro-client_31.2~22 
.04_amd64.deb (--unpack): 
 trying to overwrite '/etc/apt/apt.conf.d/20apt-esm-hook.conf', which is also in 
 package ubuntu-advantage-tools 31.2~22.04 
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) 
Errors were encountered while processing: 
 /var/cache/apt/archives/ubuntu-pro-client_31.2~22.04_amd64.deb 
N: Ignoring '20apt-esm-hook.conf' in directory '/etc/apt/apt.conf.d/' as it is not a regular file 
E: Sub-process /usr/bin/dpkg returned an error code (1)  

Как исправить?

Только авторизированные пользователи могут оставлять свои ответы
Дата
Популярность
Аватар пользователя
Новичок

руками и думая головой

Аватар пользователя
Оракул

RTFM!

dpkg-reconfigure

Вообще-то похоже на что-то капитальное

Я бы запустил на всякий случай

dpkg-reconfigure -a

и пошёл гулять или в магазин. Не быстрое это дело