Strona 1 z 2

[+] Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 13:18
autor: ww71
Witam.
Przy próbie aktualizacji do Debian 11 z 10.10 po wpisaniu repo:

Kod: Zaznacz cały

deb http://ftp.pl.debian.org/debian/ bullseye-backports main contrib non-free

# Bullseye 
deb http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://deb.debian.org/debian bullseye main contrib non-free

deb http://deb.debian.org/debian-security/ bullseye/updates main contrib non-fr$
#deb-src http://deb.debian.org/debian-security/ bullseye/updates main contrib n$

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free/code]
[code]
 [code]

Wyskakuje błąd:

Kod: Zaznacz cały

# apt-get update && apt-get dist-upgrade
Stary:1 http://ftp.pl.debian.org/debian bullseye-backports InRelease
Stary:2 http://dl.google.com/linux/chrome/deb stable InRelease                 
Stary:3 https://deb.opera.com/opera-stable stable InRelease                    
Stary:4 http://deb.debian.org/debian bullseye InRelease                        
Ign:5 http://deb.debian.org/debian-security bullseye/updates InRelease       
Stary:6 http://deb.debian.org/debian bullseye-updates InRelease
Pobieranie:7 https://repo.skype.com/deb stable InRelease [4 502 B]
Błąd:8 http://deb.debian.org/debian-security bullseye/updates Release
  404  Not Found [IP: 199.232.138.132 80]
Błąd:7 https://repo.skype.com/deb stable InRelease
  Następujące podpisy były błędne: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
Czytanie list pakietów... Gotowe
E: The repository 'http://deb.debian.org/debian-security bullseye/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: Następujące podpisy były błędne: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
Repozytoria wziąłem z :
viewtopic.php?f=5&t=34652&p=193151&hili ... ye#p193151
Proszę o wskazówki co zrobić.

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 13:37
autor: LordRuthwen
A zrobiłeś wcześniej aktualizację pakietów obecnej dystrybucji?

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 13:44
autor: ww71
Chodzi o Debian 10.10? Jeśli tak, to tak. Później wpisałem nowe repo.

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 17:26
autor: hephalump
Zmień wpis odnośnie debian-security
Ta linijka ma wyglądać tak:

Kod: Zaznacz cały

deb http://security.debian.org/debian-security bullseye-security main contrib non-free

deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free
Tu wpis buster/updates został zastąpiony wpisem bullseye-security.

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 17:36
autor: hephalump
A tak przy okazji to zaktualizuj też sobie klucz do repo Skype bo jak widać ten też masz nieaktualny.

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 18:04
autor: ww71
Dzięki. Pobiera ale później bądź jutro zaktualizuję do Debian 11. Mam nadzieję, że będzie dobrze. Pozdrawiam :)

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 19:17
autor: fnmirk
hephalump pisze:Zmień wpis odnośnie debian-security
A możesz uzasadnić w jakim celu ma dodawać stary wpis do poprawek bezpieczeńtwa? W dodatku bez https? Skoro ma już dostęp do poprawek bezpieczeństwa.

Jak nie wiesz, to Cię pocieszę sam tego nie wiedziałem do niedawna.

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 19:25
autor: hephalump
Ja też tego sam nie wymyśliłem.
https://www.debian.org/security/

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 20:12
autor: fnmirk
Też użyłbym na Twoim miejscu tego argumentu. Ale jakiś czas temu zostały zmienione adresy i obecnie oficjalne repozytoria Debiana rozpoczynają się od:

Kod: Zaznacz cały

deb https://deb.debian.org...
(jest o tym gdzieś napisane na forum).
Porównaj dokąd prowadzą adresy:
https://security.debian.org/debian-security
https://deb.debian.org/debian-security
Czyli wpis jaki podałeś dubluje ten dostępny w systemie.

Poradniki napisane w pewnym okresie, nowi użytkownicy przeglądają bezkrytycznie, a starzy użytkownicy do oczywistych (dla nich) informacji rzadko zaglądają. Łatwiej założyć na forum temat niż poprawić poradnik na wiki Debiana.

W sumie, Debian w wersji stabilnej wymaga tylko takich adresów:

Kod: Zaznacz cały

deb https://deb.debian.org/debian/ bullseye main
deb https://deb.debian.org/debian-security bullseye/updates main 
albo

Kod: Zaznacz cały

deb https://deb.debian.org/debian/ stable main 
deb https://deb.debian.org/debian-security stable/updates main

Re: Debian 11 , problem z repozytoriami

: 16 sierpnia 2021, 20:29
autor: hephalump
Właściwie powinienem się z powołać na to:
https://www.debian.org/releases/bullsey ... ty-archive
5.1.3. Changed security archive layout
For bullseye, the security suite is now named bullseye-security instead of codename/updates and users should adapt their APT source-list files accordingly when upgrading.

The security line in your APT configuration may look like:

deb https://deb.debian.org/debian-security bullseye-security main contrib
If your APT configuration also involves pinning or APT::Default-Release, it is likely to require adjustments as the codename of the security archive no longer matches that of the regular archive. An example of a working APT::Default-Release line for bullseye looks like:

APT::Default-Release "/^bullseye(|-security|-updates)$/";
which takes advantage of the undocumented feature of APT that it supports regular expressions (inside /).
Tak widzę widzę, że i ja trochę się to pospieszyłem.