Проблемы при обновлении от 16,04 до 18,04

Я попытался обновить от 16,04 до 18,04. Но я сталкиваюсь с некоторыми проблемами.

nuc ➜  ~  sudo apt update                              
Hit:1 http://se.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:3 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease                   
Hit:4 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease                 
Fetched 88,7 kB in 0s (164 kB/s)                               
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1919 packages can be upgraded. Run 'apt list --upgradable' to see them.
nuc ➜  ~  sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-aptdaemon.pkcompat : Conflicts: packagekit
                              Conflicts: packagekit:i386
E: Broken packages

Я попытался удалить конфликтующие пакеты:

nuc ➜  ~  sudo apt remove packagekit packagekit:i386
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'packagekit' is not installed, so not removed
Package 'packagekit:i386' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  amd64-microcode thermald
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1919 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
Processing triggers for linux-image-unsigned-4.15.0-45-generic (4.15.0-45.48) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.15.0-45-generic
cp: failed to restore the default file creation context: Invalid argument
W: Possible missing firmware /lib/firmware/i915/kbl_guc_ver9_14.bin for module i915
W: Possible missing firmware /lib/firmware/i915/bxt_guc_ver8_7.bin for module i915
cp: failed to restore the default file creation context: Invalid argument
E: /usr/share/initramfs-tools/hooks/kmod failed with return 1.
update-initramfs: failed for /boot/initrd.img-4.15.0-45-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-unsigned-4.15.0-45-generic (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-unsigned-4.15.0-45-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

Любой совет был бы полезен!

0
задан 19 February 2019 в 13:18

2 ответа

Удостоверьтесь, что Ваши важные файлы и файловая система сохранены прежде, чем сделать обновление дистрибутива. Я рекомендую использовать rsync для любого типа резервных копий файловой системы. Вы попробовали

sudo apt clean

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

0
ответ дан 26 October 2019 в 05:26

Я попробовал предложение spinState010, но оно не решало этот тот же вопрос для меня. То, что сделало, было:

sudo apt remove python3-aptdaemon.pkcompat

Так, Вы могли бы дать этому попытку вместо этого и сообщить нам, работало ли это на Вас.

0
ответ дан 26 October 2019 в 05:26

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

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