Atualmente, executo o Debian Buster no meu computador como teste. Agora que o Buster se tornou estável, como devo atualizar meu sistema?
Especificamente, como eu configuro /etc/apt/sources.list?
Atualmente, está assim:
# deb cdrom:[Official Debian GNU/Linux Live 9.9.0 xfce 2019-04-27T10:47]/ stretch main
# deb cdrom:[Official Debian GNU/Linux Live 9.9.0 xfce 2019-04-27T10:47]/ stretch main
deb http://ftp.uk.debian.org/debian/ buster main
deb-src http://ftp.uk.debian.org/debian/ buster main
deb http://security.debian.org/debian-security/ buster/updates main
deb-src http://security.debian.org/debian-security/ buster/updates main
#stretch-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ buster-updates main
deb-src http://ftp.uk.debian.org/debian/ buster-updates main
E quando eu executo sudo apt-get update
, recebo esta saída:
Ign:1 http://deb.debian.org/debian stretch InRelease
Get:2 http://security.debian.org/debian-security buster/updates InRelease [31.1 kB]
Get:3 http://ftp.uk.debian.org/debian buster InRelease [118 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://ftp.uk.debian.org/debian buster-updates InRelease [46.8 kB]
Get:6 http://deb.debian.org/debian stretch Release.gpg [2,434 B]
Reading package lists... Done
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
N: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Version' value from '' to '10.0'
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'testing-updates' to 'stable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
E: Repository 'http://deb.debian.org/debian stretch Release' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Atualização: corri sudo apt update
e tive esta caixa de diálogo com o gerenciador de atualização:
geoff@geoff-debian:/etc/apt$ sudo apt update
Get:1 http://ftp.uk.debian.org/debian buster InRelease [118 kB]
Get:2 http://security.debian.org/debian-security buster/updates InRelease [31.1 kB]
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:3 http://ftp.uk.debian.org/debian buster-updates InRelease [46.8 kB]
Ign:4 http://deb.debian.org/debian stretch InRelease
Get:5 http://deb.debian.org/debian stretch Release [118 kB]
Get:6 http://security.debian.org/debian-security buster/updates/main Sources [1,688 B]
Get:7 http://deb.debian.org/debian stretch Release.gpg [2,434 B]
Get:8 http://security.debian.org/debian-security buster/updates/main amd64 Packages [1,448 B]
Get:9 http://security.debian.org/debian-security buster/updates/main Translation-en [1,364 B]
N: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Version' value from '' to '10.0'
E: Repository 'http://ftp.uk.debian.org/debian buster InRelease' changed its 'Suite' value from 'testing' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
E: Repository 'http://ftp.uk.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'testing-updates' to 'stable-updates'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
E: Repository 'http://deb.debian.org/debian stretch Release' changed its 'Suite' value from 'stable' to 'oldstable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Fetched 171 kB in 1min 6s (2,594 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
159 packages can be upgraded. Run 'apt list --upgradable' to see them.
geoff@geoff-debian:/etc/apt$
Isso é bom? Estou particularmente preocupado com a mensagem do antigo estábulo. Eu deveria ter este repositório ainda?
tl;dr: executar uma vez
apt-get update --allow-releaseinfo-change
Edit: Mesma coisa novamente para
bullseye
2021.O que acontece aqui é que o banco de dados apt local lembrou que as "informações de lançamento" das fontes do pacote eram "busterAsTesting" e, ao atualizar agora, "busterAsStable" é retornado.
Isso resulta no erro e na indicação de que você precisa "permitir a alteração das informações da versão de lançamento".
Felizmente,
apt-get
tem uma opção para isso, apropriadamente chamadaallow-releaseinfo-change
Ao executar o apt-get com esta opção, ele percebe -como sem- a discrepância de versão (as
N:
-linhas), mas agora aceita como solicitado e atualiza o banco de dados local.Eu sugiro usar
Isso ocorreu porque apt-get update --allow-releaseinfo-change não funcionou para mim.
Não posso comentar sobre a resposta aceita acima. Portanto, se tudo mais falhar, use minha resposta.
Execute
apt update
e aceite as alterações (digite y sempre que solicitado). Ele fará todas as alterações necessárias.Isso não é um "problema" nem há razão para executar o synaptic e mexer ou alterar o sources.list. Também não é bug.
apt explica claramente o que está acontecendo.
Tudo o que precisa ser feito é aceitar as mudanças.