Dietpi-update doesn't work

Creating a bug report/issue

I’m trying to run the update as suggested in the welcome message of my dietpi but after a while it shows me this message:

[FAILED] DietPi-Update | Unable to continue, DietPi-Update will now terminate.

Before it asks me to retry or to open the configurations page…
Can someone tell me if I’m doing something wrong?

Thanks

Pls can you share the entire error message you receive. Maybe you can scroll up a little bit to see all information.

Here it is:

APT upgrade                                                                                                            
                                         │  - Command: apt-get -y upgrade                                                                                         
                                         │  - Exit code: 100                                                                                                      
                                         │  - DietPi version: v8.7.1 (MichaIng/master) | HW_MODEL: 1 | HW_ARCH: 1 | DISTRO: 6                                     
                                         │  - Image creator: DietPi Core Team                                                                                     
                                         │  - Pre-image: from scratch                                                                                             
                                         │  - Error log:                                                                                                          
                                         │ Reading package lists...                                                                                               
                                         │ Building dependency tree...                                                                                            
                                         │ Reading state information...                                                                                           
                                         │ Calculating upgrade...                                                                                                 
                                         │ The following packages will be upgraded:                                                                               
                                         │   libsnmp-base libsnmp40 libxslt1.1 raspberrypi-bootloader raspberrypi-kernel                                          
                                         │   zlib1g                                                                                                               
                                         │ 6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.                                                         
                                         │ Need to get 108 MB of archives.                                                                                        
                                         │ After this operation, 256 kB of additional disk space will be used.                                                    
                                         │ Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf zlib1g armhf 1:1.2.11.dfsg-2+deb11u2 [84.8 kB]      
                                         │ Get:2 https://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-kernel armhf 1:1.20220830-1 [98.7 MB]     
                                         │ Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libxslt1.1 armhf 1.1.34-4+deb11u1 [217 kB]          
                                         │ Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp-base all 5.9+dfsg-4+deb11u1 [1736 kB]       
                                         │ Err:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp-base all 5.9+dfsg-4+deb11u1                 
                                         │   File has unexpected size (3397 != 1736068). Mirror sync in progress? [IP: 2600:9000:2134:b200:2:bd35:ec40:93a1       
                                         │ 443]                                                                                                                   
                                         │   Hashes of expected file:                                                                                             
                                         │    - SHA256:29db55df63efb10bd43d4f8a074a1373b2307268add4bd3b215d832dd482fcb5                                           
                                         │    - SHA1:48bf6396703e25f0f3134f95aaa79ad1e3df6e5b [weak]                                                              
                                         │    - MD5Sum:6fee268c7b63176bc2925c3ddcd3377f [weak]                                                                    
                                         │    - Filesize:1736068 [weak]                                                                                           
                                         │ Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp40 armhf 5.9+dfsg-4+deb11u1 [2425 kB]        
                                         │ Err:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp40 armhf 5.9+dfsg-4+deb11u1                  
                                         │   File has unexpected size (3397 != 2425004). Mirror sync in progress? [IP: 2600:9000:2134:b200:2:bd35:ec40:93a1       
                                         │ 443]                                                                                                                   
                                         │   Hashes of expected file:                                                                                             
                                         │    - SHA256:a222710fd0bcd0fbb77bd3d97d9d984bc1ccb1cc0669dff75ea79aa5c6fdcfd6                                           
                                         │    - SHA1:19c674cccd76a6089cabcc9fccc224fd1d1cdad3 [weak]                                                              
                                         │    - MD5Sum:fda57063c8d5545578e018990cece969 [weak]                                                                    
                                         │    - Filesize:2425004 [weak]                                                                                           
                                         │ Get:6 https://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-bootloader armhf 1:1.20220830-1 [4535     
                                         │ kB]                                                                                                                    
                                         │ Fetched 104 MB in 43s (2413 kB/s)                                                                                      
                                         │ E: Failed to fetch                                                                                                     
                                         │ https://www.safebrowse.io/warn.html?url=http://mirror.ossplanet.net/raspbian/raspbian/pool/main/n/net-snmp/libsnmp-b   
                                         │ ase_5.9+dfsg-4+deb11u1_all.deb&token=65ac3bea  File has unexpected size (3397 != 1736068). Mirror sync in progress?    
                                         │ [IP: 2600:9000:2134:b200:2:bd35:ec40:93a1 443]                                                                        
                                         │    Hashes of expected file:                                                                                            
                                         │     - SHA256:29db55df63efb10bd43d4f8a074a1373b2307268add4bd3b215d832dd482fcb5                                          
                                         │     - SHA1:48bf6396703e25f0f3134f95aaa79ad1e3df6e5b [weak]                                                             
                                         │     - MD5Sum:6fee268c7b63176bc2925c3ddcd3377f [weak]                                                                   
                                         │     - Filesize:1736068 [weak]                                                                                          
                                         │ E: Failed to fetch                                                                                                     
                                         │ https://www.safebrowse.io/warn.html?url=http://mirror.ossplanet.net/raspbian/raspbian/pool/main/n/net-snmp/libsnmp40   
                                         │ _5.9+dfsg-4+deb11u1_armhf.deb&token=8e710a69  File has unexpected size (3397 != 2425004). Mirror sync in progress?     
                                         │ [IP: 2600:9000:2134:b200:2:bd35:ec40:93a1 443]                                                                         
                                         │    Hashes of expected file:                                                                                            
                                         │     - SHA256:a222710fd0bcd0fbb77bd3d97d9d984bc1ccb1cc0669dff75ea79aa5c6fdcfd6                                          
                                         │     - SHA1:19c674cccd76a6089cabcc9fccc224fd1d1cdad3 [weak]                                                             
                                         │     - MD5Sum:fda57063c8d5545578e018990cece969 [weak]                                                                   
                                         │     - Filesize:2425004 [weak]                                                                                          
                                         │ E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?                                  
                                         │                                                                                                                        
                                         │                        Retry          : Re-run the last command that failed                 ↑                          
                                         │                        DietPi-Config  : Edit network, APT/NTP mirror settings etc

Hmm looks like you have issues to get files download from global RPI repository http://raspbian.raspberrypi.org

Do you have any network security component inside your local network that could influence the internet connection?

Nothing is known to me…
The only thing it’s set on the router (but it has always been set since I changed the internet provider) is parental control.
I had always run updates and upgrade without any issues even after the provider change.

Quite strange behaviour. It seems to be working for the first files but got interrupted out of the sudden.

You can try following

/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
apt upgrade

OK, I run those commands, and looks like there is still some issue
this is the output for the update

root@DietPi:~# apt update
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:2 https://archive.raspberrypi.org/debian bullseye InRelease [23.7 kB]      
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB]
Get:4 https://archive.raspberrypi.org/debian bullseye/main armhf Packages [295 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/non-free armhf Packages [106 kB]
Get:6 http://raspbian.raspberrypi.org/raspbian bullseye/contrib armhf Packages [60.2 kB]
Fetched 13.7 MB in 26s (525 kB/s)                                              
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
6 packages can be upgraded. Run 'apt list --upgradable' to see them.

and this one for the upgrade command

root@DietPi:~# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libsnmp-base libsnmp40 libxslt1.1 raspberrypi-bootloader raspberrypi-kernel
  zlib1g
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 108 MB of archives.
After this operation, 256 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf zlib1g armhf 1:1.2.11.dfsg-2+deb11u2 [84.8 kB]
Get:4 https://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-kernel armhf 1:1.20220830-1 [98.7 MB]
Get:5 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libxslt1.1 armhf 1.1.34-4+deb11u1 [217 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp-base all 5.9+dfsg-4+deb11u1 [1736 kB]
Err:2 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp-base all 5.9+dfsg-4+deb11u1
  File has unexpected size (3397 != 1736068). Mirror sync in progress? [IP: 2600:9000:248c:4400:2:bd35:ec40:93a1 443]
  Hashes of expected file:
   - SHA256:29db55df63efb10bd43d4f8a074a1373b2307268add4bd3b215d832dd482fcb5
   - SHA1:48bf6396703e25f0f3134f95aaa79ad1e3df6e5b [weak]
   - MD5Sum:6fee268c7b63176bc2925c3ddcd3377f [weak]
   - Filesize:1736068 [weak]
Get:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp40 armhf 5.9+dfsg-4+deb11u1 [2425 kB]
Err:3 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libsnmp40 armhf 5.9+dfsg-4+deb11u1
  File has unexpected size (3397 != 2425004). Mirror sync in progress? [IP: 108.138.189.87 443]
  Hashes of expected file:
   - SHA256:a222710fd0bcd0fbb77bd3d97d9d984bc1ccb1cc0669dff75ea79aa5c6fdcfd6
   - SHA1:19c674cccd76a6089cabcc9fccc224fd1d1cdad3 [weak]
   - MD5Sum:fda57063c8d5545578e018990cece969 [weak]
   - Filesize:2425004 [weak]
Get:6 https://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-bootloader armhf 1:1.20220830-1 [4535 kB]
Fetched 104 MB in 51s (2029 kB/s)                                              
E: Failed to fetch https://www.safebrowse.io/warn.html?url=http://mirror.ossplanet.net/raspbian/raspbian/pool/main/n/net-snmp/libsnmp-base_5.9+dfsg-4+deb11u1_all.deb&token=1f60b19b  File has unexpected size (3397 != 1736068). Mirror sync in progress? [IP: 2600:9000:248c:4400:2:bd35:ec40:93a1 443]
   Hashes of expected file:
    - SHA256:29db55df63efb10bd43d4f8a074a1373b2307268add4bd3b215d832dd482fcb5
    - SHA1:48bf6396703e25f0f3134f95aaa79ad1e3df6e5b [weak]
    - MD5Sum:6fee268c7b63176bc2925c3ddcd3377f [weak]
    - Filesize:1736068 [weak]
E: Failed to fetch https://www.safebrowse.io/warn.html?url=http://mirror.ossplanet.net/raspbian/raspbian/pool/main/n/net-snmp/libsnmp40_5.9+dfsg-4+deb11u1_armhf.deb&token=810504c6  File has unexpected size (3397 != 2425004). Mirror sync in progress? [IP: 108.138.189.87 443]
   Hashes of expected file:
    - SHA256:a222710fd0bcd0fbb77bd3d97d9d984bc1ccb1cc0669dff75ea79aa5c6fdcfd6
    - SHA1:19c674cccd76a6089cabcc9fccc224fd1d1cdad3 [weak]
    - MD5Sum:fda57063c8d5545578e018990cece969 [weak]
    - Filesize:2425004 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

What can I try now?

What is strange to me, you seem to be redirected to some “browser hijacker” plugin side. But as this is some kind of browser plugin, I would have no idea how this could land on a Linux system? Or did you installed some desktop solution?

Not that I’m aware of… Maybe when I installed the system in the beginning?
But this should have caused the issue even in the previous updates, isn’t it?

Honestly, I have no idea how this could happen and why you are redirected. There seems to be something on your local network inspecting network traffic and redirecting your request.

Not sure if possible but you could try to connect your SBC to a mobile phone hotspot and to see how it is going. Just to exclude the local network for internet connection.

It is more than a browser plugin. It is a cybersecurity solution used by some ISPs to protect their customers.

Long story short, you need to either add the blocked domains in whitelist, notify the provider for this false positive, or disable the service (not recommended).

1 Like

I opened the router settings and found that it blocked 2 times the visits to mirror.ossplanet.net/raspbian.......
It gives me the possibility to enable access for one hour and now it has updated the OS.

Now I should only understand how to whitelist the blocked domains, and why it never blocked them before.

This could be a new apt package mirror or your never got redirected to this one in the past. Something we are not able to influence.