Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS  (Прочитано 1864 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн Alexey9809

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Всем добрый день. Пытаюсь обновить версию Ubuntu на сервере, но в процессе обновления он мне говорит что нужно освободить место на /boot и выдает следующее сообщение:
Not enough free disk space
The upgrade has aborted. The upgrade needs a total of 55.6 M free
space on disk '/boot'. Please free at least an additional 55.6 M of
disk space on '/boot'. You can remove old kernels using 'sudo apt
autoremove' and you could also set COMPRESS=xz in
/etc/initramfs-tools/initramfs.conf to reduce the size of your
initramfs.
пытаюсь удалить старые ядра с помощью команды
sudo apt purge linux-image-4.15.0-66-generic
После этого он выдает такое сообщение:
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-3.13.0-110-generic : Depends: linux-image-3.13.0-110-generic but it is not going to be installed
 linux-image-extra-3.13.0-139-generic : Depends: linux-image-3.13.0-139-generic but it is not going to be installed
 linux-image-extra-3.13.0-57-generic : Depends: linux-image-3.13.0-57-generic but it is not going to be installed
 linux-image-generic : Depends: linux-image-3.13.0-170-generic but it is not going to be installed or
                                linux-image-unsigned-3.13.0-170-generic but it is not going to be installed
 linux-modules-extra-3.13.0-170-generic : Depends: linux-image-3.13.0-170-generic but it is not going to be installed or
                                                   linux-image-unsigned-3.13.0-170-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Можете подсказать что делать в данном случае?
« Последнее редактирование: 23 Июля 2021, 13:33:49 от Aleksandru »

shamanhuev

  • Гость
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #1 : 23 Июля 2021, 12:38:32 »
А просто autoremove  и clean ?

Оффлайн Alexey9809

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #2 : 23 Июля 2021, 12:55:08 »
выдает такое сообщение
apt-get autoremove
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-3.13.0-110-generic : Depends: linux-image-3.13.0-110-generic but it is not installed
 linux-image-extra-3.13.0-139-generic : Depends: linux-image-3.13.0-139-generic but it is not installed
 linux-image-generic : Depends: linux-image-3.13.0-170-generic but it is not installed or
                                linux-image-unsigned-3.13.0-170-generic but it is not installed
 linux-modules-extra-3.13.0-170-generic : Depends: linux-image-3.13.0-170-generic but it is not installed or
                                                   linux-image-unsigned-3.13.0-170-generic but it is not installed
E: Unmet dependencies. Try using -f.

Когда ввожу команду 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:
  linux-headers-3.13.0-108 linux-headers-3.13.0-108-generic
  linux-image-3.13.0-108-generic linux-image-3.13.0-110-generic
  linux-image-3.13.0-139-generic linux-image-extra-3.13.0-108-generic
  linux-image-extra-3.13.0-110-generic linux-image-extra-3.13.0-139-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.13.0-110-generic linux-image-3.13.0-139-generic
  linux-image-3.13.0-170-generic linux-modules-3.13.0-170-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
  linux-image-3.13.0-110-generic linux-image-3.13.0-139-generic
  linux-image-3.13.0-170-generic linux-modules-3.13.0-170-generic
0 upgraded, 4 newly installed, 0 to remove and 351 not upgraded.
23 not fully installed or removed.
Need to get 0 B/44.2 MB of archives.
After this operation, 130 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.


Пользователь добавил сообщение 23 Июля 2021, 12:57:02:
А просто autoremove  и clean ?
выдает такое сообщение

apt-get autoremove
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-3.13.0-110-generic : Depends: linux-image-3.13.0-110-generic but it is not installed
 linux-image-extra-3.13.0-139-generic : Depends: linux-image-3.13.0-139-generic but it is not installed
 linux-image-generic : Depends: linux-image-3.13.0-170-generic but it is not installed or
                                linux-image-unsigned-3.13.0-170-generic but it is not installed
 linux-modules-extra-3.13.0-170-generic : Depends: linux-image-3.13.0-170-generic but it is not installed or
                                                   linux-image-unsigned-3.13.0-170-generic but it is not installed
E: Unmet dependencies. Try using -f.

Когда ввожу команду 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:
  linux-headers-3.13.0-108 linux-headers-3.13.0-108-generic
  linux-image-3.13.0-108-generic linux-image-3.13.0-110-generic
  linux-image-3.13.0-139-generic linux-image-extra-3.13.0-108-generic
  linux-image-extra-3.13.0-110-generic linux-image-extra-3.13.0-139-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-image-3.13.0-110-generic linux-image-3.13.0-139-generic
  linux-image-3.13.0-170-generic linux-modules-3.13.0-170-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
  linux-image-3.13.0-110-generic linux-image-3.13.0-139-generic
  linux-image-3.13.0-170-generic linux-modules-3.13.0-170-generic
0 upgraded, 4 newly installed, 0 to remove and 351 not upgraded.
23 not fully installed or removed.
Need to get 0 B/44.2 MB of archives.
After this operation, 130 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.

Цитировать
Правила форума
1.4. Листинги и содержимое текстовых файлов следует добавлять в сообщение с помощью тегов [spoiler]...[/spoiler] или [code]...[/code], либо прикреплять к сообщению в виде отдельного файла. Длинные гиперссылки следует оформлять при помощи тега [url=]...[/url]
--Aleksandru
« Последнее редактирование: 23 Июля 2021, 13:36:13 от Aleksandru »

Оффлайн DimmKo

  • Активист
  • *
  • Сообщений: 260
    • Просмотр профиля
    • Image Hosting
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #3 : 23 Июля 2021, 13:09:48 »
Not enough free disk space
попробуйте увеличить размер раздела boot или руками удалите, раз он сам не может.
Ubuntu Server 20.04.2 LTS | x86_64

Оффлайн Alexey9809

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #4 : 23 Июля 2021, 13:26:08 »
А руками это как?) Какие команды нужно вводить?

Оффлайн DimmKo

  • Активист
  • *
  • Сообщений: 260
    • Просмотр профиля
    • Image Hosting
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #5 : 23 Июля 2021, 13:38:05 »
Для начала, пожалуйста, покажите вывод команд

Код: (bash) [Выделить]
awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg

Код: (bash) [Выделить]
uname -r
Ubuntu Server 20.04.2 LTS | x86_64

Оффлайн Alexey9809

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #6 : 23 Июля 2021, 13:54:23 »
# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
Ubuntu
Ubuntu, with Linux 3.13.0-107-generic
Ubuntu, with Linux 3.13.0-107-generic (recovery mode)
Ubuntu, with Linux 3.13.0-57-generic
Ubuntu, with Linux 3.13.0-57-generic (recovery mode)
Ubuntu, with Linux 3.13.0-54-generic
Ubuntu, with Linux 3.13.0-54-generic (recovery mode)
Ubuntu, with Linux 3.13.0-51-generic
Ubuntu, with Linux 3.13.0-51-generic (recovery mode)
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)

# uname -r
3.13.0-107-generic
« Последнее редактирование: 23 Июля 2021, 14:49:02 от Aleksandru »

Оффлайн DimmKo

  • Активист
  • *
  • Сообщений: 260
    • Просмотр профиля
    • Image Hosting
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #7 : 23 Июля 2021, 14:21:04 »
# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg
Ubuntu
Ubuntu, with Linux 3.13.0-107-generic
Ubuntu, with Linux 3.13.0-107-generic (recovery mode)
Ubuntu, with Linux 3.13.0-57-generic
Ubuntu, with Linux 3.13.0-57-generic (recovery mode)
Ubuntu, with Linux 3.13.0-54-generic
Ubuntu, with Linux 3.13.0-54-generic (recovery mode)
Ubuntu, with Linux 3.13.0-51-generic
Ubuntu, with Linux 3.13.0-51-generic (recovery mode)

вот эти ядра знает grub и может с них загрузиться.

# uname -r
3.13.0-107-generic

А это сейчас используется.

Т.ч. его трогать никак нельзя.

Пользователь добавил сообщение 23 Июля 2021, 14:24:45:
Покажите еще, пожалуйста, вывод этой команды:

Код: (bash) [Выделить]
sudo ls -l /boot
« Последнее редактирование: 23 Июля 2021, 14:25:24 от DimmKo »
Ubuntu Server 20.04.2 LTS | x86_64

Оффлайн Alexey9809

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #8 : 23 Июля 2021, 14:50:23 »
sudo ls -l /boot
total 229994
-rw-r--r-- 1 root root  1166834 Dec 20  2016 abi-3.13.0-107-generic
-rw-r--r-- 1 root root  1166834 Jan 11  2017 abi-3.13.0-108-generic
-rw-r--r-- 1 root root  1166834 Feb  8  2017 abi-3.13.0-109-generic
-rw-r--r-- 1 root root  1164671 Apr 15  2015 abi-3.13.0-51-generic
-rw-r--r-- 1 root root  1164806 May 26  2015 abi-3.13.0-54-generic
-rw-r--r-- 1 root root  1164984 Jun 19  2015 abi-3.13.0-57-generic
-rw-r--r-- 1 root root   166061 Dec 20  2016 config-3.13.0-107-generic
-rw-r--r-- 1 root root   166061 Jan 11  2017 config-3.13.0-108-generic
-rw-r--r-- 1 root root   166061 Feb  8  2017 config-3.13.0-109-generic
-rw-r--r-- 1 root root   165762 Apr 15  2015 config-3.13.0-51-generic
-rw-r--r-- 1 root root   165762 May 26  2015 config-3.13.0-54-generic
-rw-r--r-- 1 root root   165762 Jun 19  2015 config-3.13.0-57-generic
drwxr-xr-x 5 root root     1024 Jan 19  2017 grub
-rw-r--r-- 1 root root 20955006 Jan 19  2017 initrd.img-3.13.0-107-generic
-rw-r--r-- 1 root root 20885718 Jan 19  2017 initrd.img-3.13.0-45-generic
-rw-r--r-- 1 root root 20883423 Jan 19  2017 initrd.img-3.13.0-46-generic
-rw-r--r-- 1 root root 20883981 Jan 19  2017 initrd.img-3.13.0-48-generic
-rw-r--r-- 1 root root 20887805 Jan 19  2017 initrd.img-3.13.0-49-generic
-rw-r--r-- 1 root root 20885105 Jan 19  2017 initrd.img-3.13.0-51-generic
-rw-r--r-- 1 root root  3464253 Jan 19  2017 initrd.img-3.13.0-53-generic
-rw-r--r-- 1 root root 20886624 Jan 19  2017 initrd.img-3.13.0-54-generic
-rw-r--r-- 1 root root 20884682 Jan 19  2017 initrd.img-3.13.0-57-generic
drwx------ 2 root root    12288 Nov 14  2014 lost+found
-rw-r--r-- 1 root root   176500 Mar 12  2014 memtest86+.bin
-rw-r--r-- 1 root root   178176 Mar 12  2014 memtest86+.elf
-rw-r--r-- 1 root root   178680 Mar 12  2014 memtest86+_multiboot.bin
-rw------- 1 root root  3399716 Dec 20  2016 System.map-3.13.0-107-generic
-rw------- 1 root root  3399716 Jan 11  2017 System.map-3.13.0-108-generic
-rw------- 1 root root  3399670 Feb  8  2017 System.map-3.13.0-109-generic
-rw------- 1 root root  3389875 Apr 15  2015 System.map-3.13.0-51-generic
-rw------- 1 root root  3390881 May 26  2015 System.map-3.13.0-54-generic
-rw------- 1 root root  3391581 Jun 19  2015 System.map-3.13.0-57-generic
-rw------- 1 root root  5849776 Dec 20  2016 vmlinuz-3.13.0-107-generic
-rw------- 1 root root  5849776 Jan 11  2017 vmlinuz-3.13.0-108-generic
-rw------- 1 root root  5850192 Feb  8  2017 vmlinuz-3.13.0-109-generic
-rw------- 1 root root  5818368 Apr 15  2015 vmlinuz-3.13.0-51-generic
-rw------- 1 root root  5821664 May 26  2015 vmlinuz-3.13.0-54-generic
-rw------- 1 root root  5820800 Jun 19  2015 vmlinuz-3.13.0-57-generic
« Последнее редактирование: 23 Июля 2021, 14:56:04 от Aleksandru »

Оффлайн DimmKo

  • Активист
  • *
  • Сообщений: 260
    • Просмотр профиля
    • Image Hosting
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #9 : 23 Июля 2021, 14:56:29 »
и вот эту еще, пожалуйста, покажите:

Код: (bash) [Выделить]
sudo du -sh /boot/*
Пользователь добавил сообщение 23 Июля 2021, 15:34:46:
-rw-r--r-- 1 root root 20885718 Jan 19  2017 initrd.img-3.13.0-45-generic
-rw-r--r-- 1 root root 20883423 Jan 19  2017 initrd.img-3.13.0-46-generic
-rw-r--r-- 1 root root 20883981 Jan 19  2017 initrd.img-3.13.0-48-generic
-rw-r--r-- 1 root root 20887805 Jan 19  2017 initrd.img-3.13.0-49-generic

хотя, ладно, из этого вот понятно.

Теперь:

1) удалим лишнее

Код: (bash) [Выделить]
sudo rm /boot/initrd.img-3.13.0-4*-generic
2) проверим что осталось

Код: (bash) [Выделить]
sudo ls -lh /boot/
3) попробуем снова доустановить и доудалять

Код: (bash) [Выделить]
sudo apt-get -f install
если будет успех, то

Код: (bash) [Выделить]
sudo apt-get autoremove
« Последнее редактирование: 23 Июля 2021, 15:34:46 от DimmKo »
Ubuntu Server 20.04.2 LTS | x86_64

Dzhoser

  • Гость
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #10 : 23 Июля 2021, 16:53:12 »
sudo apt-get purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n -1)Эта команда удалит все ядра кроме текущего и последнего
sudo apt-get autoremovesudo apt-get autoclean

Оффлайн Alexey9809

  • Автор темы
  • Новичок
  • *
  • Сообщений: 7
    • Просмотр профиля
Re: Обновление Ubuntu с версии 14.04.5 LTS на 16.04.7 LTS
« Ответ #11 : 26 Июля 2021, 13:08:06 »
DimmKo, спасибо за помощь, после последних команд мне таки удалось удалить старые ядра!)

 

Страница сгенерирована за 0.046 секунд. Запросов: 25.