[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trouble upgrading Debian (reply to David Wright)




David Wright wrote:
On Sat 04 Sep 2021 at 23:04:49 (-0300), Dedeco Balaco wrote:
> 
> today, i started to upgrade my computer from Debian 9 (Stretch) to
> Debian 11 (Bullseye). I had some trouble finding what i wanted to do, a
> completely internet based upgrade, if possible. In the Debian
> documention, i did not find this explanation. It says it can be done,
> but it does not explain how to do it.
> 
> So, i opened the following thread. Do not read it now, there are more
> things i will say here, first.
> 
> https://www.linuxquestions.org/questions/linux-software-2/upgrading-debian-distribution-4175700202/#post6281677
> 
> In the thread, I was advised to not upgrade from Debian 9 to 11 in one
> step, because "jumping 2 releases will probably result in MASSIVE
> breakage". This should be in the official documentation, no? If there is
> this risk, it must be.

Yes, in the Release Notes. You can download the appropriate version from
https://www.debian.org/releases/bullseye/releasenotes

The warning is in § 4.2.1. It's recursive, so when you go back to
buster's, it has the same warning (§ 4.2), and the same for stretch,
jessie, and so on.
Thank you. I did not imagine this would happen. It is the first time, in my life, that I am upgrading Debian this way.

> So, i should to 2 upgrades: one to Debian 10, and one more to Debian 11.
> Fine. And for each one, the steps are:
> 
> 1. Disable all third party repositories.
> 
I already did this.
> 2. Edit /etc/apt/sources.list to reflect the next distribution i will
> have. Directly, this is just changing all "stretch" occurencies to
> "buster"; or all "buster" to "bullseye", in the second upgrade.

No, follow the Release Notes. For example, you should update and
upgrade the current version before you change sources.list, as the
main upgrade should be made from the latest point-release.
Mmm... so, I should also 'apt upgrade' with Debian 9 (Stretch) sources.list? This is different from many directions I found in the web.


> 3. apt update
> 
> 4. apt upgrade
> 
> 5. apt full-upgrade
> 
> But after my first edition to sources.list, apt update fails. I have
> tried apt-get update to, but it also fails for the apparently same reason.
> 
> What should i do to solve this?

Presumably you need help here, so posting the error message is needed.
But do read the Release Notes (buster's in the first instance):
if you follow them carefully, it's possible you won't get failures.

I want to upgrade to Debian 10 (as a step to Debian 11), but I am having trouble with some signature. Let me show a full description. In my first try, I was not with an updated Debian 9. Someone asked me that, and then I tried to repeat everything after updating things. So, I

1. Restored sources.list to be what Debian 9 stretch uses

2. Asked 'synaptic' to reload the package database

3. Tried to do 'apt update' as root, but it does not work. GPG signature error.

21:18:54 [  0] root@compo: /etc/apt

# apt-mark hold firefox-esr firefox-esr-l10n-pt-br thunderbird
 thunderbird-l10n-pt-br 

firefox-esr set on hold.

firefox-esr-l10n-pt-br set on hold.

thunderbird set on hold.

thunderbird-l10n-pt-br set on hold.



21:46:26 [  0] root@debian: /etc/apt

# apt update

Get:1 http://security.debian.org buster/updates InRelease [65.4
kB]

Err:1 http://security.debian.org buster/updates InRelease                     

  The following signatures couldn't be verified because the
  public key is not available: NO_PUBKEY 112695A0E562B32A
  NO_PUBKEY 54404762BBB6E853

Get:2 http://deb.debian.org/debian buster InRelease [122 kB]          

Get:3 http://deb.debian.org/debian buster-updates InRelease
[51.9 kB]

Err:3 http://deb.debian.org/debian buster-updates InRelease    

  The following signatures couldn't be verified because the
  public key is not available: NO_PUBKEY 648ACFD622F3D138
  NO_PUBKEY 0E98404D386FA1D9

Get:4 http://deb.debian.org/debian buster/main Sources [7,836
kB]

Get:5 http://deb.debian.org/debian buster/main amd64 Packages
[7,907 kB]

Get:6 http://deb.debian.org/debian buster/main i386 Packages
[7,863 kB]

Get:7 http://deb.debian.org/debian buster/main Translation-pt_BR
[683 kB]

Get:8 http://deb.debian.org/debian buster/main Translation-en
[5,968 kB]

Get:9 http://deb.debian.org/debian buster/main Translation-pt
[309 kB]

Get:10 http://deb.debian.org/debian buster/main amd64 Contents
(deb) [37.3 MB]

Get:11 http://deb.debian.org/debian buster/main i386 Contents
(deb) [37.3 MB]

Reading package lists... Done                                                  

W: GPG error: http://security.debian.org buster/updates
InRelease: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 112695A0E562B32A
NO_PUBKEY 54404762BBB6E853

E: The repository 'http://security.debian.org buster/updates
InRelease' is not signed.

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: GPG error: http://deb.debian.org/debian buster-updates
InRelease: The following signatures couldn't be verified because
the public key is not available: NO_PUBKEY 648ACFD622F3D138
NO_PUBKEY 0E98404D386FA1D9

E: The repository 'http://deb.debian.org/debian buster-updates
InRelease' is not signed.

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.

21:46:50 [  0] root@debian: /etc/apt

#

So, what can I do to fix this?



Cheers,
David.


Reply to: