Upgrade to Bullseye apt upgrade errors Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
jetspeed
Posts: 12
Joined: Thu Feb 18, 2021 10:02 am

Upgrade to Bullseye apt upgrade errors

Post by jetspeed »

So I'm following the blog steps to upgrade.

At this step

Code: Select all

dietpi-services stop
apt upgrade
I get the following error:

Code: Select all

Fetched 82.0 MB in 2min 32s (538 kB/s)                                                                                                                                                                                                      
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/o/openssl/libssl-dev_1.1.1k-1+deb11u1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.1k-1+deb11u1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/s/systemd/systemd-sysv_247.3-6+rpi1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/o/openssl/openssl_1.1.1k-1+deb11u1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Running apt update --fix-missing returns

Code: Select all

Err:1 http://mirror.aarnet.edu.au/pub/raspbian/raspbian bullseye/main armhf systemd-sysv armhf 247.3-6+rpi1
  404  Not Found [IP: 202.158.214.106 80]
Err:2 http://mirror.aarnet.edu.au/pub/raspbian/raspbian bullseye/main armhf libssl-dev armhf 1.1.1k-1+deb11u1
  404  Not Found [IP: 202.158.214.106 80]
Err:3 http://mirror.aarnet.edu.au/pub/raspbian/raspbian bullseye/main armhf libssl1.1 armhf 1.1.1k-1+deb11u1
  404  Not Found [IP: 202.158.214.106 80]
Err:4 http://mirror.aarnet.edu.au/pub/raspbian/raspbian bullseye/main armhf openssl armhf 1.1.1k-1+deb11u1
  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/s/systemd/systemd-sysv_247.3-6+rpi1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/o/openssl/libssl-dev_1.1.1k-1+deb11u1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/o/openssl/libssl1.1_1.1.1k-1+deb11u1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Failed to fetch http://mirror.aarnet.edu.au/pub/raspbian/raspbian/pool/main/o/openssl/openssl_1.1.1k-1+deb11u1_armhf.deb  404  Not Found [IP: 202.158.214.106 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Please let me know what I can do to fix these errors.
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Joulinar »

Looks like the apt package server mirror at Raspbian side has some issues. I would recommend to wait and try again later. Not really something to do in your side.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Lycidias
Posts: 18
Joined: Mon Oct 26, 2020 11:01 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Lycidias »

Isn't it possible to update via dietpi-update? And if no, why not ? :(
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Joulinar »

DietPi will never force a Debian destro upgrade via

Code: Select all

 dietpi-update
. There are to many things that might not work as a destro upgrade is quite a have thing, going to update more than 200 packages. Therefore we created a guide on our blog giving a general guidance.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Lycidias
Posts: 18
Joined: Mon Oct 26, 2020 11:01 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Lycidias »

I've read the blog post. Do I need to enter the commands in the code blocks separately or could I just copy and paste the code blocks per se and hit enter after every block? Because the code blocks are not code friendly formatted and I am a beginner.

And if I run into any problems, could I just restore my dietpi backup?
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Joulinar »

I recommend to clone your SD card if you use one. We know about a challenge for curl command after restore.

And yes you would need to copy line by line. It is not that many ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Lycidias
Posts: 18
Joined: Mon Oct 26, 2020 11:01 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Lycidias »

I will try it in the following days 8)

What do you mean with curl after restore? I don't understand it :D

And is there a well known method to clone my whole SD to another SD or an image file?

thanks

Btw: the code on the blogpost would be easier to read for beginners if it was formatted like this:
Screenshot_20210919-165308_Acode.png
User avatar
Joulinar
Posts: 5927
Joined: Sat Nov 16, 2019 12:49 am

Re: Upgrade to Bullseye apt upgrade errors

Post by Joulinar »

On windows you can use W32 disk imager to create an img file

curl is a tool we use to get some data from internet source. After an unsuccessful upgrade and restore performed, this tool is failing. Therefore better to have the image file created to avoid such issues.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
jetspeed
Posts: 12
Joined: Thu Feb 18, 2021 10:02 am

Re: Upgrade to Bullseye apt upgrade errors

Post by jetspeed »

I restored yesterday and realised that curl was broken today. I ran the other commands you have in the other thread without success. Is my only option now is to restore from my SD card backup?
User avatar
MichaIng
Site Admin
Posts: 3349
Joined: Sat Nov 18, 2017 6:21 pm

Re: Upgrade to Bullseye apt upgrade errors

Post by MichaIng »

To investigate the curl issue, can you please do the following:

Code: Select all

apt install pax-utils
lddtree /usr/bin/curl
Yeah since we couldn't find the reason for the error after restoring the Buster backup, restoring the SD card is the only solution. I'll try to replicate and investigate this evening.

The code blocks can also be copy&pasted as well, btw. Only downside is that all commands are executed regardless if one failed. So executing them one by one indeed gives you more control over the process.
Post Reply