Witaj na Forum Linuxiarzy
Zanim zalogujesz się, by pisać na naszym forum, zapoznaj się z kilkoma zasadami savoir-vivre'u w dziale Administracja.
Wiadomości z problemami zamieszczone w wątku "Przywitaj się" oraz wszelkie reklamy na naszym forum będą usuwane.

Najpierw zaginiony Pulpit, a teraz odmowa aktualizacji :-(

Zaczęty przez ciubaka, Styczeń 01, 2024, 07:39:20 PM

Poprzedni wątek - Następny wątek

ciubaka

Ja mu tak a on mi owak - chciałem naprawić pulpit, to wysypała się aktualizacja sytemu - jak to naprawić, poproszę o pomoc ...

ciubaka@ciubaka-latitudee6530:~$  sudo apt-get update
 sudo apt-get dist-upgrade
[sudo] hasło użytkownika ciubaka:
Stary:1 http://security.debian.org/debian-security bookworm-security/updates InRelease
Stary:2 http://deb.debian.org/debian bookworm InRelease   
Stary:3 http://deb-multimedia.org bookworm InRelease
Stary:4 https://repo.sparkylinux.org core InRelease     
Stary:5 https://repo.sparkylinux.org orion InRelease
Czytanie list pakietów... Gotowe
W: Skipping acquire of configured file 'non-freedeb/binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe   
Obliczanie aktualizacji... Gotowe
Następujące pakiety zostaną zaktualizowane:
  sparky-info
1 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
53 nie w pełni zainstalowanych lub usuniętych.
Konieczne pobranie 0 B/68,7 MB archiwów.
Po tej operacji zostanie dodatkowo użyte 8 192 B miejsca na dysku.
Kontynuować? [T/n] t
Odczytywanie dzienników zmian... Zrobione
(Odczytywanie bazy danych ... 179979 plików i katalogów obecnie zainstalowanych.)
Przygotowywanie do rozpakowania pakietu .../sparky-info_7.2~20231204_all.deb ...
Rozpakowywanie pakietu sparky-info (7.2~20231204) nad (7.1~20230912) ...
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: �#: not found
dpkg: ostrzeżenie: podproces stary pakiet sparky-info skrypt post-removal zwrócił kod błędu 127
dpkg: próba wywołania skryptu z nowego pakietu ...
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: �#: not found
dpkg: błąd przetwarzania archiwum /var/cache/apt/archives/sparky-info_7.2~20231204_all.deb (--unpack):
 podproces nowy pakiet sparky-info skrypt post-removal zwrócił kod błędu 127
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: �#: not found
dpkg: błąd podczas czyszczenia środowiska:
 podproces nowy pakiet sparky-info skrypt post-removal zwrócił kod błędu 127
Wystąpiły błędy podczas przetwarzania:
 /var/cache/apt/archives/sparky-info_7.2~20231204_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
ciubaka@ciubaka-latitudee6530:~$

ciubaka

Zamiast w spokoju oglądać Kevina to ja pogarszam stan Sparky-ego :

ciubaka@ciubaka-latitudee6530:~$  sudo apt-get update
 sudo apt-get upgrade
Stary:1 http://deb.debian.org/debian bookworm InRelease
Stary:2 http://security.debian.org/debian-security bookworm-security/updates InRelease
Stary:3 https://repo.sparkylinux.org core InRelease                     
Stary:4 https://repo.sparkylinux.org orion InRelease     
Stary:5 http://deb-multimedia.org bookworm InRelease
Czytanie list pakietów... Gotowe
W: Skipping acquire of configured file 'non-freedeb/binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'non-freedeb/i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'non-freedeb' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'http://deb.debian.org/debian//i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'http://deb.debian.org/debian/' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'bullseye/i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'bullseye' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/binary-amd64/Packages' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/i18n/Translation-en' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/i18n/Translation-pl' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'contrib/i18n/Translation-pl_PL' as repository 'http://deb-multimedia.org bookworm InRelease' doesn't have the component 'contrib' (component misspelt in sources.list?)
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności... Gotowe
Odczyt informacji o stanie... Gotowe   
Obliczanie aktualizacji... Gotowe
Następujące pakiety zostaną USUNIĘTE:
  linux-image-6.1.0-15-amd64
Następujące pakiety zostaną zaktualizowane:
  sparky-info
1 aktualizowanych, 0 nowo instalowanych, 1 usuwanych i 0 nieaktualizowanych.
6 nie w pełni zainstalowanych lub usuniętych.
Konieczne pobranie 0 B/2 360 B archiwów.
Po tej operacji zostanie zwolnione 408 MB miejsca na dysku.
Kontynuować? [T/n] t
Odczytywanie dzienników zmian... Zrobione
(Odczytywanie bazy danych ... 179978 plików i katalogów obecnie zainstalowanych.)
Usuwanie pakietu linux-image-6.1.0-15-amd64 (6.1.66-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-15-amd64
/etc/kernel/postrm.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: �#: not found
run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
dpkg: błąd przetwarzania pakietu linux-image-6.1.0-15-amd64 (--remove):
 podproces zainstalowany pakiet linux-image-6.1.0-15-amd64 skrypt post-removal zwrócił kod błędu 1
dpkg: zbyt wiele błędów, zatrzymanie
Wystąpiły błędy podczas przetwarzania:
 linux-image-6.1.0-15-amd64
Przetwarzanie zostało zatrzymane z powodu wystąpienia zbyt wielu błędów.
E: Sub-process /usr/bin/dpkg returned an error code (1)
ciubaka@ciubaka-latitudee6530:~$



ciubaka

Skoro nie mogę się zaktualizować z 7.1 na 7.2, to może byłoby najlepiej to pominąć i przeładować się na 8.0? Tyle że to chyba nie jest proste, bo wymaga zmiany repozytoriów :-( Ale ten bałagan który mam teraz też nie jest łatwy do uporządkowania i tak samo wymuszoną miałem aktualizację do wersji 7.0 ...

ciubaka

#3
Kurcze, jednak on się upiera, że jest w wersji 7.2 :-(

https://imgur.com/Np6g280.png

Ale na starcie systemu pokazuje, że jest w 7.1 i także samo próbuje zaktualizować się w terminalu do wersji 7.2, miałcząc o błędach dpgk oraz o kluczowym błędzie numer 127 :-(

pavroo

Jeśli dpkg informuje o błędach to może jakieś pakiety nie zostały poprawnie skonfigurowane, więc spóbuj to naprawić:
sudo dpkg --configure -a
Czasami lepiej trzymać usta zamknięte i być traktowany jak idiota, niż je otworzyć i rozwiać wszelkie wątpliwości. Mark Twain

ciubaka

To robiłem wczoraj, ale spróbuję jeszcze raz. Ten kod błędu 127 jest jakiś dziwny, nigdzie tego w necie nie znajduję :-(

pavroo

Jeśli błąd pojawi się ponownie, podaj cały jego wynik w konsoli.
Czasami lepiej trzymać usta zamknięte i być traktowany jak idiota, niż je otworzyć i rozwiać wszelkie wątpliwości. Mark Twain

ciubaka

Generalnie błędy są wyświetlone w powyższych zrzutach z konsoli, ale faktycznie w weekend dorzucę to, co system pokazuje po

sudo dpkg --configure -a


linux4ever

#8
Cytat: ciubaka w Styczeń 03, 2024, 08:23:31 AMGeneralnie błędy są wyświetlone w powyższych zrzutach z konsoli, ale faktycznie w weekend dorzucę to, co system pokazuje po

sudo dpkg --configure -a



Pomaga to: https://www.tecmint.com/dpkg-reconfigure-installed-package-in-ubuntu-debian/

Potem weź  sudo apt update i sudo apt install wybranego pakietu.

I : https://phoenixnap.com/kb/ubuntu-fix-broken-packages  co prawda ubuntu ale powinno pomóc.

No i mam ten błąd 127 wyjaśniony:

CytatThis error occurs when you specify a command or entrypoint that doesn't exist or is not executable within the container. For instance, you may have specified a shell script as your entrypoint, but the script doesn't exist at the specified location within the container.

https://komodor.com/learn/how-to-fix-exit-code-127-file-or-directory-not-found/

I teraz po polsku:

CytatTen błąd zdarza się gdy ustalasz komendę lub wejście które nie istnieje lub nie jest uruchamialne z kontenerem(?).Dla przykładu ty możesz ustalić skrypt shell jako twoje wejście ale skrypt nie istnieje w ustalonej lokalizacji z kontenerem.


I co to kontener:
CytatCo to są kontenery IT?
Kontener (lub inaczej pojemnik, ang. container, collection) - struktura danych, której zadaniem jest przechowywanie w zorganizowany sposób zbioru danych (obiektów). Kontener zapewnia narzędzia dostępu, w tym dodawanie, usuwanie i wyszukiwanie danej (obiektu) w kontenerze.

Oraz:

CytatKontener, który działa na systemie operacyjnym hosta, jest standardową jednostką programową, gromadzącą kod i wszystkie jego zależności, dzięki czemu aplikacje mogą działać szybko i niezawodnie pomiędzy różnymi środowiskami. Kontenery są nietrwałe i są uruchamiane za pomocą obrazów.

https://pl.wikipedia.org/wiki/Kontener_(programowanie)

https://www.oracle.com/pl/cloud/cloud-native/container-registry/what-is-docker/

Nie wiem czy to poprawnie.
"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

ciubaka

#9
Oj, jest gorzej niż się obawiałem :-(
Generalnie widzę problem ze sparky-info oraz ze sparky-aptus :-(
I to właśnie pewnie rzutuje na desktop-xfce - albo wręcz przeciwnie - desktop nienaprawialny wywołał problemy w systemie :-(

ciubaka@ciubaka-latitudee6530:~$ sudo dpkg --configure -a
[sudo] hasło użytkownika ciubaka:
Konfigurowanie pakietu linux-image-6.1.0-17-amd64 (6.1.69-1) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-17-amd64
I: The initramfs will attempt to resume from /dev/sda8
I: (UUID=2a902e2b-0d9a-4bca-b15a-bdc0a28c3435)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: �#: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
dpkg: błąd przetwarzania pakietu linux-image-6.1.0-17-amd64 (--configure):
 podproces zainstalowany pakiet linux-image-6.1.0-17-amd64 skrypt post-installation zwrócił kod błędu 1
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie pakietu sparky-aptus-appcenter:
 sparky-aptus-appcenter zależy od sparky-info; jednakże:
  Pakiet sparky-info nie jest zainstalowany.

dpkg: błąd przetwarzania pakietu sparky-aptus-appcenter (--configure):
 problemy z zależnościami - pozostawianie nieskonfigurowanego
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie pakietu sparky-desktop-xfce:
 sparky-desktop-xfce zależy od sparky-aptus-appcenter | sparky-aptus; jednakże:
  Pakiet sparky-aptus-appcenter nie jest jeszcze skonfigurowany.
  Pakiet sparky-aptus nie jest zainstalowany.

dpkg: błąd przetwarzania pakietu sparky-desktop-xfce (--configure):
 problemy z zależnościami - pozostawianie nieskonfigurowanego
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie pakietu linux-image-amd64:
 linux-image-amd64 zależy od linux-image-6.1.0-17-amd64 (= 6.1.69-1); jednakże:
  Pakiet linux-image-6.1.0-17-amd64 nie jest jeszcze skonfigurowany.

dpkg: błąd przetwarzania pakietu linux-image-amd64 (--configure):
 problemy z zależnościami - pozostawianie nieskonfigurowanego
Wystąpiły błędy podczas przetwarzania:
 linux-image-6.1.0-17-amd64
 sparky-aptus-appcenter
 sparky-desktop-xfce
 linux-image-amd64


pavroo

Pierwszy błąd wymusza następne.
Musisz poprawnie zainstalować nowe jądro lub je usunąć:
sudo dpkg -r linux-image-6.1.0-17-amd64Jeśli zostanie usunięty również meta pakiet jądra, można go będzie później doinstalować.
Spróbuj i daj wynik z konsoli jeśli pojawi się błąd.
Czasami lepiej trzymać usta zamknięte i być traktowany jak idiota, niż je otworzyć i rozwiać wszelkie wątpliwości. Mark Twain

ciubaka

Nie idzie :-(

ciubaka@ciubaka-latitudee6530:~$ sudo dpkg -r linux-image-6.1.0-17-amd64
[sudo] hasło użytkownika ciubaka:
dpkg: problemy z zależnościami uniemożliwiają usunięcie linux-image-6.1.0-17-amd64:
 linux-image-amd64 zależy od linux-image-6.1.0-17-amd64 (= 6.1.69-1).

dpkg: błąd przetwarzania pakietu linux-image-6.1.0-17-amd64 (--remove):
 problemy z zależnościami - nie zostanie usunięty
Wystąpiły błędy podczas przetwarzania:
 linux-image-6.1.0-17-amd64
ciubaka@ciubaka-latitudee6530:~$

pavroo

To usuń oba pakiety, wraz z meta:
sudo dpkg -r linux-image-6.1.0-17-amd64 linux-image-amd64
Czasami lepiej trzymać usta zamknięte i być traktowany jak idiota, niż je otworzyć i rozwiać wszelkie wątpliwości. Mark Twain

linux4ever

Cytat: ciubaka w Styczeń 06, 2024, 12:35:07 PMNie idzie :-(

ciubaka@ciubaka-latitudee6530:~$ sudo dpkg -r linux-image-6.1.0-17-amd64
[sudo] hasło użytkownika ciubaka:
dpkg: problemy z zależnościami uniemożliwiają usunięcie linux-image-6.1.0-17-amd64:
 linux-image-amd64 zależy od linux-image-6.1.0-17-amd64 (= 6.1.69-1).

dpkg: błąd przetwarzania pakietu linux-image-6.1.0-17-amd64 (--remove):
 problemy z zależnościami - nie zostanie usunięty
Wystąpiły błędy podczas przetwarzania:
 linux-image-6.1.0-17-amd64
ciubaka@ciubaka-latitudee6530:~$

Sudo apt autoremove usunie wszystkie zależności które są niepotrzebne.

Potem weź sudo apt update i sudo apt upgrade.

Powinno zadziałać.
"Powiedz mi, a zapomnę, pokaż mi, a zapamiętam, pozwól mi zrobić, a zrozumiem. "-Konfucjusz

pavroo

Napisałem poprzednio abyś usunął dwa pakiety za jednym zamachem, nie jeden:
sudo dpkg -r linux-image-6.1.0-17-amd64 linux-image-amd64
Czasami lepiej trzymać usta zamknięte i być traktowany jak idiota, niż je otworzyć i rozwiać wszelkie wątpliwości. Mark Twain

Zobacz najnowsze wiadomości na forum