Показать статистику
0 голосов
от (280 баллов)

Уважаемые знатоки, нужен ваш совет, как правильно сделать.

Собственно есть такая проблема:

dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 4.4.0.141.147); however:
  Version of linux-headers-generic on system is 4.4.0.139.145.

sudo apt-get dist-upgrade
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 linux-image-generic : Depends: linux-image-4.4.0-141-generic but it is not installed
                       Depends: linux-image-extra-4.4.0-141-generic but it is not installed
                       Recommends: thermald but it is not installed

E: Unmet dependencies. Try using -f.

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

sudo apt-get -f install

Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done

The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic
  linux-headers-4.4.0-119 linux-headers-4.4.0-119-generic
  linux-headers-4.4.0-124 linux-headers-4.4.0-124-generic
  linux-headers-4.4.0-127 linux-headers-4.4.0-127-generic
  linux-headers-4.4.0-134 linux-headers-4.4.0-134-generic
  linux-headers-4.4.0-135 linux-headers-4.4.0-135-generic
  linux-headers-4.4.0-137 linux-headers-4.4.0-137-generic
  linux-image-4.4.0-116-generic linux-image-4.4.0-119-generic
  linux-image-4.4.0-124-generic linux-image-4.4.0-127-generic
  linux-image-4.4.0-134-generic linux-image-4.4.0-135-generic
  linux-image-4.4.0-137-generic linux-image-extra-4.4.0-116-generic
  linux-image-extra-4.4.0-119-generic linux-image-extra-4.4.0-124-generic
  linux-image-extra-4.4.0-127-generic linux-image-extra-4.4.0-134-generic
  linux-image-extra-4.4.0-135-generic linux-image-extra-4.4.0-137-generic

Use 'sudo apt autoremove' to remove them.

The following additional packages will be installed:

  linux-headers-4.4.0-141-generic linux-image-4.4.0-141-generic
  linux-image-extra-4.4.0-141-generic

Suggested packages:

  fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools

The following NEW packages will be installed:

  linux-image-4.4.0-141-generic linux-image-extra-4.4.0-141-generic

The following packages will be upgraded:

  linux-headers-4.4.0-141-generic

1 upgraded, 2 newly installed, 0 to remove and 38 not upgraded.

2 not fully installed or removed.

Need to get 59.5 MB of archives.

After this operation, 232 MB of additional disk space will be used.

Do you want to continue? [Y/n] Abort.
573 просмотров 1 ответов

1 Ответ

0 голосов
от (460 баллов)

Не совсем понял, где собственно сама ошибка. Вы что потом нажали Y или n? Или у Вас вообще самой ошибки не было по сути? Если я правильно понял, то терминал предложил сделать сначала выбор - хотите ли Вы устанавливать или нет, в Вы закрыли его окно, и на этом успокоились?

Выход из ситуации такой - подключите интернет и выполните в терминале последовательно, по одной команде за раз следующее:

sudo apt update
sudo apt -f install -y
sudo apt autoremove
sudo apt autoclean
sudo apt clean

Если у вас что пойдет не так - выводы команд все сюда, будем разбирать.

...