LINUX.ORG.RU

apt-get перестал работать. Нельзя установить ниодну программу даже через сторонний установщик gui

 


0

1

Всем привет. Система Ubuntu 20.04.6 Собственно сабж. Гугл не помогает. При попытке что то поставить:

evgenij@kotbook:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-image-generic-hwe-20.04 : Depends: linux-image-5.15.0-124-generic but it is not installed
 linux-modules-extra-5.15.0-119-generic : Depends: linux-image-5.15.0-119-generic but it is not installed or
                                                   linux-image-unsigned-5.15.0-119-generic but it is not installed
 linux-modules-extra-5.15.0-124-generic : Depends: linux-image-5.15.0-124-generic but it is not installed or
                                                   linux-image-unsigned-5.15.0-124-generic but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Используем совет с фикс брокен:

evgenij@kotbook:~$ sudo apt --fix-broken 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:
  gir1.2-goa-1.0 libatk-bridge2.0-0:i386 libatspi2.0-0:i386 libcolord2:i386 libepoxy0:i386
  libfwupdplugin1 libgtk-3-0:i386 libjson-glib-1.0-0:i386 libllvm11:i386 librest-0.7-0:i386
  libsoup-gnome2.4-1:i386 libxmlb1 linux-headers-5.15.0-119-generic
  linux-hwe-5.15-headers-5.15.0-119 linux-image-5.15.0-119-generic
  linux-modules-5.15.0-119-generic linux-modules-extra-5.15.0-119-generic wine-staging
  wine-staging-amd64 wine-staging-i386:i386
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-image-5.15.0-119-generic linux-image-5.15.0-124-generic linux-modules-5.15.0-119-generic
  linux-modules-5.15.0-124-generic
Suggested packages:
  fdutils linux-doc | linux-hwe-5.15-source-5.15.0 linux-hwe-5.15-tools
The following NEW packages will be installed:
  linux-image-5.15.0-119-generic linux-image-5.15.0-124-generic linux-modules-5.15.0-119-generic
  linux-modules-5.15.0-124-generic
0 upgraded, 4 newly installed, 0 to remove and 138 not upgraded.
8 not fully installed or removed.
Need to get 0 B/67,4 MB of archives.
After this operation, 349 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 293743 files and directories currently installed.)
Preparing to unpack .../linux-modules-5.15.0-124-generic_5.15.0-124.134~20.04.1_amd64.deb ...
Unpacking linux-modules-5.15.0-124-generic (5.15.0-124.134~20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-5.15.0-124-generic_5.15.0-124.1
34~20.04.1_amd64.deb (--unpack):
 error setting ownership of './boot/System.map-5.15.0-124-generic': Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-5.15.0-124-generic_5.15.0-124.134~20.04.1_amd64.deb ...
Unpacking linux-image-5.15.0-124-generic (5.15.0-124.134~20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.15.0-124-generic_5.15.0-124.134
~20.04.1_amd64.deb (--unpack):
 error setting ownership of './boot/vmlinuz-5.15.0-124-generic': Operation not permitted
W: Last kernel image has been removed, so removing the default symlinks
Preparing to unpack .../linux-modules-5.15.0-119-generic_5.15.0-119.129~20.04.1_amd64.deb ...
Unpacking linux-modules-5.15.0-119-generic (5.15.0-119.129~20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-modules-5.15.0-119-generic_5.15.0-119.1
29~20.04.1_amd64.deb (--unpack):
 error setting ownership of './boot/System.map-5.15.0-119-generic': Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-image-5.15.0-119-generic_5.15.0-119.129~20.04.1_amd64.deb ...
Unpacking linux-image-5.15.0-119-generic (5.15.0-119.129~20.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-5.15.0-119-generic_5.15.0-119.129
~20.04.1_amd64.deb (--unpack):
 error setting ownership of './boot/vmlinuz-5.15.0-119-generic': Operation not permitted
No apport report written because MaxReports is reached already
                                                              W: Last kernel image has been removed,
 so removing the default symlinks
Errors were encountered while processing:
 /var/cache/apt/archives/linux-modules-5.15.0-124-generic_5.15.0-124.134~20.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-5.15.0-124-generic_5.15.0-124.134~20.04.1_amd64.deb
 /var/cache/apt/archives/linux-modules-5.15.0-119-generic_5.15.0-119.129~20.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-5.15.0-119-generic_5.15.0-119.129~20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Не дает поменять разрешения на boot почему то, хотя я могу в папке создавать и изменять конфиги.

evgenij@kotbook:~$ sudo chown -R root:root /boot
chown: changing ownership of '/boot/EFI/BOOT/bootx64.efi': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/drivers_x64/ext4_x64.efi': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/drivers_x64': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/refind_local.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/refind_local.crt': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/altlinux.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/canonical-uefi-ca.der': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/centos.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/fedora-ca.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/microsoft-kekca-public.der': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/microsoft-pca-public.der': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/microsoft-uefica-public.der': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/openSUSE-UEFI-CA-Certificate-4096.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/openSUSE-UEFI-CA-Certificate.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/refind.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys/SLES-UEFI-CA-Certificate.cer': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/keys': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/README': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/arrow_left.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/arrow_right.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/boot_linux.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/boot_win.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_about.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_csr_rotate.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_exit.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_firmware.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_hidden.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_reset.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/func_shutdown.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/mouse.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_arch.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_artful.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_bionic.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_centos.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_chakra.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_chrome.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_clover.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_crunchbang.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_debian.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_devuan.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_elementary.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_fedora.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_freebsd.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_frugalware.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_gentoo.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_gummiboot.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_haiku.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_hwtest.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_kubuntu.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_legacy.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_linux.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_linuxmint.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_lubuntu.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_mac.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_mageia.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_mandriva.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_netbsd.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_network.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_opensuse.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_redhat.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_refind.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_refit.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_slackware.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_suse.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_systemd.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_trusty.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_ubuntu.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_unknown.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_void.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_win.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_win8.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_xenial.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_xubuntu.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/os_zesty.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_apple_rescue.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_fwupdate.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_memtest.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_mok_tool.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_netboot.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_part.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_rescue.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_shell.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/tool_windows_rescue.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/transparent.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/vol_external.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/vol_internal.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/vol_net.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons/vol_optical.png': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/icons': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/refind.conf': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/BOOT.CSV': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT': Operation not permitted
chown: changing ownership of '/boot/EFI/tools': Operation not permitted
chown: changing ownership of '/boot/EFI': Operation not permitted
chown: changing ownership of '/boot': Operation not permitted

Сломал весь мозг что с этим делать. Стоит загрузчик rEFind.

Гугли sudo и root, поможет. А то я вижу что sudo ты пытаешся использовать, но видимо оно у тебя или не настроено или просто не понимаешь как оно работает.

vbcnthfkmnth123 ★★★★★
()
Последнее исправление: vbcnthfkmnth123 (всего исправлений: 1)

sudo apt-get upgrade

apt clean; apt update

А вообще надо показать, какие репозитории подключены

Не дает поменять разрешения на boot почему то, хотя я могу в папке создавать и изменять конфиги.

Посмотри mount | grep boot, поймёшь :-)

И да, тоже надо выложить выхлоп mount на, например, https://paste.debian.net/

Dimez ★★★★★
()
Последнее исправление: Dimez (всего исправлений: 2)
Ответ на: комментарий от vbcnthfkmnth123
root@kotbook:/home/evgenij# chown -R root:root /boot
chown: changing ownership of '/boot/EFI/BOOT/bootx64.efi': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/drivers_x64/ext4_x64.efi': Operation not permitted
chown: changing ownership of '/boot/EFI/BOOT/drivers_x64': Operation not permitted
....

под рут тож самое

EvgenijjinegvE
() автор топика
Ответ на: комментарий от Dimez

apt clean и упдате пробовал, результат тот же

evgenij@kotbook:~$ mount | grep boot
/dev/sda1 on /boot type vfat (rw,relatime,gid=46,fmask=0007,dmask=0007,allow_utime=0020,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
EvgenijjinegvE
() автор топика
Ответ на: комментарий от Aceler

это не esp раздел. Сборка называется Макбунту и она не умеет ставиться под уефи. Только под легаси. А дальше пихаем рефайнд.

UUID=875bfc3d-3e86-4e29-a239-b03ce62c71fe /               ext4    errors=remount-ro 0       1
# /dos was on /dev/sda1 during installation
UUID=F320-8F7D  /boot            vfat    utf8,umask=007,gid=46 0       1
# swap was on /dev/sda3 during installation
UUID=4cb41554-ed31-4852-8b73-c6851f411d00 none            swap    sw              0       0
EvgenijjinegvE
() автор топика
Ответ на: комментарий от Aceler

Такс, ошибся я с esp, в гпартет показано что метка esp стоит. Но под уефи оно не загружалось, только через легаси с помощью флешки, поэтому я рефайнд ставлю. надо значит в фстап прописать есп? я не совсем понимаю как это работает…

EvgenijjinegvE
() автор топика
Ответ на: комментарий от EvgenijjinegvE

Нет, тебе надо избавиться от этого sda1 целиком, перенеси из него все файлы в /boot.tmp/, убери его из fstab и размонтируй, потом перенести файлы из /boot.tmp в /boot. После этого сделай apt --fix-broken как там его.

Хотя возможно ещё надо флешку как-то пофиксить (я не знаю что там у тебя на ней) чтоб она новый вариант разделов поддержала.

Возможно проще будет просто всё переустановить сразу без uefi-чуши и fat-ов.

firkax ★★★★★
()
Ответ на: комментарий от Dimez

Вот ты мне клоуна поставил, а твой вариант:

1) отличается от моего только тем что фат-раздел не выкидывается целиком, а перемонтируется в /boot/efi

2) в отличие от моего, совершенно не подробный и я почти уверен что автор его не осилит

3) пользы от /boot/efi всё равно не будет т.к. автор говорит что efi-загрузка у него не заработала

firkax ★★★★★
()
Ответ на: комментарий от firkax

пользы от /boot/efi всё равно не будет т.к. автор говорит что efi-загрузка у него не заработала

Луддитам неведомо, почему refind официально пишется «rEFInd».

Твой совет приведёт к переустановке системы, мой - к загрузке.

А клоуна я поставил за «мне это не нравится => не нужно», прямо как ябблофанат.

Dimez ★★★★★
()
Последнее исправление: Dimez (всего исправлений: 2)