Problém s aktualizacemi Debian 9

Založil marp, 14. 08. 2017, 10:13:57

Předchozí téma - Další téma

marp

Mám čistou instalaci Debianu 9 Stretch, při aktualizaci pomocí apt-get update i v Synapticu mi vždy vyhodí tuto chybu:
CitaceRepositář ,,http://deb.debian.org/debian stretch/updates Release" neobsahuje soubor Release.Aktualizaci z takového repositáře nelze provést zabezpečeně a je proto implicitně zakázána.Podrobnosti o vytváření a nastavení repositářů naleznete v manuálové stránce apt-secure(8).http://ftp.cz.debian.org/debian/dists/stretch-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.http://security.debian.org/dists/stretch/updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.http://ftp.cz.debian.org/debian/dists/stretch/Release.gpg: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.http://www.deb-multimedia.org/dists/stretch/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user '_apt' executing apt-key.

Sources.list mám:
deb http://ftp.cz.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.cz.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch/updates main contrib non-free
deb http://www.deb-multimedia.org/ stretch main non-free
deb http://ftp.cz.debian.org/debian/ stretch-updates non-free main contrib
Marek Marp Pszczolka
Lenovo B590 + Debian 10 Buster

Roman Horník

#1
Citace od: marp kdy 14. 08. 2017, 10:13:57Sources.list mám:
deb http://ftp.cz.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.cz.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
deb-src http://deb.debian.org/debian/ stretch/updates main contrib non-free
deb http://www.deb-multimedia.org/ stretch main non-free
deb http://ftp.cz.debian.org/debian/ stretch-updates non-free main contrib

Neměla by tam bejt místo lomítka pomlčka?
Debian Sid/Experimental 64bit + Mate Desktop Environment
* CPU: Intel i5 3570
* GPU: NVIDIA GTX650 1GD5
* MB: Lenovo IH61M
* RAM: 16GiB Deutsche Demokratische Republik 3 @ 1600MHz

Petr Krčmář

Ne, to nastavení má dobře. To vypadá na problém s úložištěm klíčů (/etc/apt/trusted.gpg) určených pro kontrolu podpisů balíčků. Nebo ti v systému chybí uživatel _apt, který zároveň musí být schopen ten soubor číst. Jaká má práva? U mě na Stretchi má 644 a funguje to správně. Co uděláte apt-key list?

marp

To mi vypíše toto:
marp@debian:~$ sudo apt-key list
[sudo] heslo pro marp:
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
uid           [ unknown] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
uid           [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub   rsa4096 2013-08-17 [SC] [expires: 2021-08-15]
      75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
uid           [ unknown] Jessie Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
-----------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
--------------------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
--------------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2012-04-27 [SC] [expires: 2020-04-25]
      A1BD 8E9D 78F7 FE5C 3E65  D8AF 8B48 AD62 4692 5553
uid           [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub   rsa4096 2012-05-08 [SC] [expires: 2019-05-07]
      ED6D 6527 1AAC F0FF 15D1  2303 6FB2 A1C2 65FF B764
uid           [ unknown] Wheezy Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
-------------------------------------------------
pub   rsa4096 2014-03-05 [SC]
      A401 FF99 368F A1F9 8152  DE75 5C80 8C2B 6555 8117
uid           [ unknown] Christian Marillat <marillat@debian.org>
uid           [ unknown] Christian Marillat <marillat@free.fr>
uid           [ unknown] Christian Marillat <marillat@deb-multimedia.org>
sub   rsa4096 2014-03-05 [E]
Marek Marp Pszczolka
Lenovo B590 + Debian 10 Buster

Petr Krčmář

Sudo jasně, ale ten soubor musí být čitelný i pro uživatele.

marp

To mi připadá totožné, až na konec - tam je varování, že není čitelný pro uživatele "marp", který je přitom rootem:
marp@debian:~$ apt-key list
/etc/apt/trusted.gpg.d/debian-archive-jessie-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      126C 0D24 BD8A 2942 CC7D  F8AC 7638 D044 2B90 D010
uid           [ unknown] Debian Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-security-automatic.gpg
-------------------------------------------------------------------
pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
      D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
uid           [ unknown] Debian Security Archive Automatic Signing Key (8/jessie) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-jessie-stable.gpg
-------------------------------------------------------
pub   rsa4096 2013-08-17 [SC] [expires: 2021-08-15]
      75DD C3C4 A499 F1A1 8CB5  F3C8 CBF8 D6FD 518E 17E1
uid           [ unknown] Jessie Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-stretch-automatic.gpg
-----------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      E1CF 20DD FFE4 B89E 8026  58F1 E0B1 1894 F66A EC98
uid           [ unknown] Debian Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-security-automatic.gpg
--------------------------------------------------------------------
pub   rsa4096 2017-05-22 [SC] [expires: 2025-05-20]
      6ED6 F5CB 5FA6 FB2F 460A  E88E EDA0 D238 8AE2 2BA9
uid           [ unknown] Debian Security Archive Automatic Signing Key (9/stretch) <ftpmaster@debian.org>
sub   rsa4096 2017-05-22 [S] [expires: 2025-05-20]

/etc/apt/trusted.gpg.d/debian-archive-stretch-stable.gpg
--------------------------------------------------------
pub   rsa4096 2017-05-20 [SC] [expires: 2025-05-18]
      067E 3C45 6BAE 240A CEE8  8F6F EF0F 382A 1A7B 6500
uid           [ unknown] Debian Stable Release Key (9/stretch) <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-automatic.gpg
----------------------------------------------------------
pub   rsa4096 2012-04-27 [SC] [expires: 2020-04-25]
      A1BD 8E9D 78F7 FE5C 3E65  D8AF 8B48 AD62 4692 5553
uid           [ unknown] Debian Archive Automatic Signing Key (7.0/wheezy) <ftpmaster@debian.org>

/etc/apt/trusted.gpg.d/debian-archive-wheezy-stable.gpg
-------------------------------------------------------
pub   rsa4096 2012-05-08 [SC] [expires: 2019-05-07]
      ED6D 6527 1AAC F0FF 15D1  2303 6FB2 A1C2 65FF B764
uid           [ unknown] Wheezy Stable Release Key <debian-release@lists.debian.org>

/etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
-------------------------------------------------
pub   rsa4096 2014-03-05 [SC]
      A401 FF99 368F A1F9 8152  DE75 5C80 8C2B 6555 8117
uid           [ unknown] Christian Marillat <marillat@debian.org>
uid           [ unknown] Christian Marillat <marillat@free.fr>
uid           [ unknown] Christian Marillat <marillat@deb-multimedia.org>
sub   rsa4096 2014-03-05 [E]

W: The key(s) in the keyring /etc/apt/trusted.gpg are ignored as the file is not readable by user 'marp' executing apt-key.
marp@debian:~$
Marek Marp Pszczolka
Lenovo B590 + Debian 10 Buster

marp

Jestli to nesouvisí s tím, že při instalaci 9.1 z live media nešel vytvořit root, takže uživatel marp dostal root práva - řešilo se to na několika fórech > ten problém s live image s 9.1...
Marek Marp Pszczolka
Lenovo B590 + Debian 10 Buster

gira

Dobrý den!Mám debian-9.1.0-amd64-DVD-1.iso instalace s usb.Po aktualizacích mě píše to samé
0170722-11:31] stretch/main all DEP-11 Metadata
Ign:18 cdrom://[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31] stretch/main DEP-11 64x64 Icons
Mám:19 http://security.debian.org/debian-security stretch/updates InRelease   
Ign:20 http://ftp.se.debian.org/debian stretch InRelease
Mám:21 http://ftp.se.debian.org/debian stretch-updates InRelease
Mám:22 http://ftp.se.debian.org/debian stretch Release
Načítají se seznamy balíků... Hotovo
W: Repositář ,,cdrom://[Debian GNU/Linux 9.1.0 _Stretch_ - Official amd64 DVD Binary-1 20170722-11:31] stretch Release" neobsahuje soubor Release.
N: Data z takového repositáře nelze ověřit a proto je jejich použití potenciálně nebezpečné.
N: Podrobnosti o vytváření a nastavení repositářů naleznete v manuálové stránce apt-secure(8).
S Debianem začínám může mě někdo poradit?
Děkuji.

D.A.Tiger

#8
Mam cesrstvou instalaci Debianu 9. Nejakou dobu aktualizece bezely v pohode, az posledni tyden nic. Stejny problem jaky popisujete vyse. Uz se s tim zkousim rejpat par hodin a stale bez vysledku. Hledat jsem nejake informace a pomoc na netu. A vypada to ze je to docela rozsahly problem. Nasel jsem tyto rady:
https://unix.stackexchange.com/questions/110500/how-to-regenerate-etc-apt-trustdb-gpg-on-debian
(Nepomohlo)
https://www.reddit.com/r/debian/comments/6dwicb/apt_aptkey_on_stretch_broken/
(Vicemene take ne. Ted apt hlasi "NO PUBLIC KEY...")
https://debian-facile.org/viewtopic.php?id=18066
(Upozornuje, ze se zmenil format adres ke zrcadlum v /etc/apt/sources.list)

Cely problem, jak jsem ho pochopil se toci kolem toho, ze zmenily nastroj a zpusob zpravy overovacixh klicu zrcadel. A vypada to, ze i vyvojare Debianu z toho ukrutne boli hlava :(
https://wiki.debian.org/SecureApt#Failed_updates_and_missing_keys

Takze to vypada, ze zatim nezbyva nez cekat.... Nebo ma nekdo prosim, nejake aktualnejsi info? Predem dik.