«Неудовлетворенные зависимости» для ядра и других пакетов [дубликат]

Когда я пытаюсь установить какой-либо пакет, я получаю следующий результат:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-4.13.0-45-generic : Depends: linux-image-4.13.0-45-generic but it is not going to be installed
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-43-generic but it is not going to be installed
 linux-modules-extra-4.15.0-38-generic : Depends: linux-image-4.15.0-38-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-38-generic but it is not going to be installed
 linux-modules-extra-4.15.0-39-generic : Depends: linux-image-4.15.0-39-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-39-generic but it is not going to be installed
 linux-modules-extra-4.15.0-43-generic : Depends: linux-image-4.15.0-43-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-43-generic but it is not going to be installed
 ubuntu-cleaner : Depends: python-defer but it is not installable
                  Depends: python-lxml but it is not going to be installed
                  Depends: python-dbus but it is not going to be installed
                  Depends: python-aptdaemon but it is not installable
                  Depends: python-aptdaemon.gtk3widgets but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

UPD: результат - sudo apt-get -f install

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  dbconfig-common gyp javascript-common libaio1 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libevent-core-2.0-5 libjs-inherits libjs-jquery libjs-node-uuid libjs-sphinxdoc
  libjs-underscore liblua5.1-0 libmcrypt4 libssl-dev libssl-doc libuv1 libuv1-dev linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-headers-4.13.0-38 linux-headers-4.13.0-38-generic
  linux-headers-4.13.0-45 linux-headers-4.13.0-45-generic linux-headers-4.15.0-38 linux-headers-4.15.0-38-generic linux-headers-4.15.0-39 linux-headers-4.15.0-39-generic linux-image-4.13.0-36-generic
  linux-image-4.13.0-38-generic linux-image-4.13.0-45-generic linux-image-4.15.0-38-generic linux-image-4.15.0-39-generic linux-image-extra-4.13.0-36-generic linux-image-extra-4.13.0-38-generic
  linux-image-extra-4.13.0-45-generic linux-modules-4.15.0-38-generic linux-modules-4.15.0-39-generic linux-modules-extra-4.15.0-38-generic linux-modules-extra-4.15.0-39-generic python-pkg-resources
  zlib1g-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-4.13.0-45-generic linux-image-4.15.0-38-generic linux-image-4.15.0-39-generic linux-image-4.15.0-43-generic linux-modules-4.15.0-39-generic linux-modules-4.15.0-43-generic
Suggested packages:
  fdutils linux-tools linux-hwe-tools
The following NEW packages will be installed:
  linux-image-4.13.0-45-generic linux-image-4.15.0-38-generic linux-image-4.15.0-39-generic linux-image-4.15.0-43-generic linux-modules-4.15.0-39-generic linux-modules-4.15.0-43-generic
0 upgraded, 6 newly installed, 0 to remove and 400 not upgraded.
18 not fully installed or removed.
Need to get 0 B/70,4 MB of archives.
After this operation, 228 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 465767 files and directories currently installed.)
Preparing to unpack .../linux-modules-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-43-generic (4.15.0-43.46~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.15.0-43-generic' to '/boot/System.map-4.15.0-43-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-43-generic (4.15.0-43.46~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-43-generic' to '/boot/vmlinuz-4.15.0-43-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.13.0-45-generic_4.13.0-45.50~16.04.1_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Done.
Unpacking linux-image-4.13.0-45-generic (4.13.0-45.50~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.13.0-45-generic_4.13.0-45.50~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.13.0-45-generic' to '/boot/vmlinuz-4.13.0-45-generic.dpkg-new': failed to write (No space left on device)
No apport report written because the error message indicates a disk full error
                                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.13.0-45-generic /boot/vmlinuz-4.13.0-45-generic
Preparing to unpack .../linux-image-4.15.0-38-generic_4.15.0-38.41~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-38-generic (4.15.0-38.41~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-38-generic_4.15.0-38.41~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-38-generic' to '/boot/vmlinuz-4.15.0-38-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-modules-4.15.0-39-generic_4.15.0-39.42~16.04.1_amd64.deb ...
Unpacking linux-modules-4.15.0-39-generic (4.15.0-39.42~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-4.15.0-39-generic_4.15.0-39.42~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-4.15.0-39-generic' to '/boot/System.map-4.15.0-39-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-4.15.0-39-generic_4.15.0-39.42~16.04.1_amd64.deb ...
Unpacking linux-image-4.15.0-39-generic (4.15.0-39.42~16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.15.0-39-generic_4.15.0-39.42~16.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.15.0-39-generic' to '/boot/vmlinuz-4.15.0-39-generic.dpkg-new': failed to write (No space left on device)
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-modules-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.13.0-45-generic_4.13.0-45.50~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-38-generic_4.15.0-38.41~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-modules-4.15.0-39-generic_4.15.0-39.42~16.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-4.15.0-39-generic_4.15.0-39.42~16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

UPD2: результат - df -h

226M  220M     0 100% /boot

результат - du -h - -max-depth = 1 / boot

120M    /boot/.Trash-0
6,8M    /boot/grub
12K     /boot/lost+found
218M    /boot

Но если я открываю свойства папки в nautilus, я вижу другой размер

307 элементов, всего 102,2 МБ (некоторое содержимое не читается)

результат ls - total 93009

UPD3: Все команды с apt , apt-get или dpkg ) дают следующие ошибки:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-headers-4.15.0-38-generic : Depends: linux-headers-4.15.0-38 but it is not going to be installed
 linux-image-extra-4.13.0-36-generic : Depends: linux-image-4.13.0-36-generic but it is not going to be installed
 linux-image-extra-4.13.0-38-generic : Depends: linux-image-4.13.0-38-generic but it is not going to be installed
 linux-image-extra-4.13.0-41-generic : Depends: linux-image-4.13.0-41-generic but it is not going to be installed
 linux-image-extra-4.13.0-43-generic : Depends: linux-image-4.13.0-43-generic but it is not going to be installed
 linux-image-generic-hwe-16.04 : Depends: linux-image-4.15.0-43-generic but it is not going to be installed
 linux-modules-extra-4.15.0-43-generic : Depends: linux-image-4.15.0-43-generic but it is not going to be installed or
                                                  linux-image-unsigned-4.15.0-43-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
0
задан 11 January 2019 в 08:34

3 ответа

Кажется из пространства.

  • Поэтому сначала подтвердите это.

  • Выполненный для всех разделов Ubuntu, например, "/" "/загружаются" и т.д.

    df -h /
    df -h /boot
    df -h /<other-partions-if-any>
    
  • Для создания пространства в "/загружают" раздел.

  • Проверять дополнительные ядра. Выполненный в терминале.

    apt --dry-run purge $(dpkg -l|egrep 'linux-image-[0-9]|linux-headers-[0-9]'|awk '{print $3,$2}'|grep -v `uname -r|cut -f1,2 -d"-"`|sort -nr|tail -n +4|awk '{ print $2}')
    
  • Если хорошо затем удаляют все но последние два ядра. Выполненный в терминале.

    sudo apt purge $(dpkg -l|egrep 'linux-image-[0-9]|linux-headers-[0-9]'|awk '{print $3,$2}'|grep -v `uname -r|cut -f1,2 -d"-"`|sort -nr|tail -n +4|awk '{ print $2}')
    
  • Если это не возможно, и начальная загрузка / полна, удалите некоторую конфигурацию* файлы

  • Внимание: Не удаляйте файл, связанный с двумя последними ядрами.

    sudo rm /boot/<file-name> из старых ядер или даже некоторого vimlinuz* файлы.

  • После решения проблемы, выполненной в терминале.

    sudo apt autoremove
    
  • Сделать пространство в "/" раздел.

  • Удалить нежелательные пакеты. Выполненный в терминале.

    sudo apt autoremove
    
  • Удалить весь .deb файл в способном кэше. Выполненный в терминале.

    sudo apt clean
    
  • Удалить старые файлы конфигурации. Выполненный в терминале.

    dpkg -l | grep '^rc' | awk '{print $2}' | xargs sudo apt purge -y
    
  • Освободить каждый мусор. Выполненный в терминале.

    rm -rf /home/*/.local/share/Trash/*/** &> /dev/null
    sudo rm -rf /root/.local/share/Trash/*/** &> /dev/null
    
  • Удалить дополнительные ядра. Выполненный в терминале.

     sudo apt purge $(dpkg -l|egrep 'linux-image-[0-9]|linux-headers-[0-9]'|awk '{print $3,$2}'|grep -v `uname -r|cut -f1,2 -d"-"`|sort -nr|tail -n +4|awk '{ print $2}')
    
  • Удалить осиротевшие пакеты. Выполненный в терминале.

    sudo apt install deborphan
    sudo deborphan | xargs sudo apt -y remove --purge
    
  • Переместите некоторое сохраненное видео аудио или другие файлы персональных данных от / домой к некоторому другому разделу.

2
ответ дан 26 October 2019 в 13:46

Вы просто выполняете наше пространство. Похоже, что Ваш диск полон согласно журналу.

dpkg: ошибочный архив обработки/var/cache/apt/archives/linux-modules-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb (-распаковывают): не может скопировать извлеченные данные для './boot/System.map-4.15.0-43-generic' к '/boot/System.map-4.15.0-43-generic.dpkg-new': не удалось записать (Никакое пространство, оставленное на устройстве) No по левую сторону судна, сообщают записанный, потому что сообщение об ошибке указывает на диск полная ошибка dpkg-deb: ошибка: вставка подпроцесса была уничтожена сигналом (Поврежденный канал) Подготовка распаковать.../linux-image-4.15.0-43-generic_4.15.0-43.46~16.04.1_amd64.deb...

Можно попытаться не удалить более необходимые файлы и/или создать резервную копию любого мультимедийного контента на облачном сервисе к свободному пространству.

редактирование предложило отредактировать. Я использовал следующие способы очистить дополнительные пакеты, и свободный располагают с интервалами, как упомянуто https://askubuntu.com/a/205776/599385

1
ответ дан 26 October 2019 в 13:46

Необходимо освободить некоторое пространство. Необходимо ли проверить раздел/папку начальной загрузки/, действительно ли возможно сделать это больше? Можно ли отправить вывод sudo df -h и sudo du -h --max-depth=1 /boot?

После наблюдения вывода of.du команда, Вы видите, что у Вас есть.Trash папка (сделайте Вас, удалил что-то с наутилусом, возможно?) внутри / начальная загрузка. Попытайтесь удалить его и сделать Кв. и команды dpkg после этого

-1
ответ дан 26 October 2019 в 13:46

Другие вопросы по тегам:

Похожие вопросы: