Debian 13: Incorrect internet connection for "apt update" command (web browsers can't navigation) after blackout

Hello Friends

For a laptop with Debian 13 Desktop happened the following experience

Yesterday in the night when was executed the apt update command happened a blackout. Now today when the same command is executed appears the following output

apt update
Ign:1 http://deb.debian.org/debian trixie InRelease                                                                                                  
Ign:2 http://security.debian.org/debian-security trixie-security InRelease                                                                           
Ign:3 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                        
Ign:4 https://repo.vivaldi.com/stable/deb stable InRelease                                                                                           
Ign:5 https://packages.microsoft.com/repos/code stable InRelease                                                                                     
Ign:2 http://security.debian.org/debian-security trixie-security InRelease                                                                           
Ign:4 https://repo.vivaldi.com/stable/deb stable InRelease                                                                                           
Ign:5 https://packages.microsoft.com/repos/code stable InRelease                                                                                     
Ign:6 http://deb.debian.org/debian trixie-updates InRelease                                                                                          
Ign:3 https://dl.google.com/linux/chrome/deb stable InRelease  
Ign:4 https://repo.vivaldi.com/stable/deb stable InRelease                                                                                           
Ign:5 https://packages.microsoft.com/repos/code stable InRelease                                                                                     
Ign:1 http://deb.debian.org/debian trixie InRelease                                                                                                  
Ign:2 http://security.debian.org/debian-security trixie-security InRelease                         
Ign:3 https://dl.google.com/linux/chrome/deb stable InRelease       
Ign:6 http://deb.debian.org/debian trixie-updates InRelease                                                                                          
Err:2 http://security.debian.org/debian-security trixie-security InRelease                                                                           
  Temporary failure resolving 'security.debian.org'
Err:3 https://dl.google.com/linux/chrome/deb stable InRelease                                                                               
  Temporary failure resolving 'dl.google.com'
Err:4 https://repo.vivaldi.com/stable/deb stable InRelease                                                                                  
  Temporary failure resolving 'repo.vivaldi.com'
Err:5 https://packages.microsoft.com/repos/code stable InRelease                                                                            
  Temporary failure resolving 'packages.microsoft.com'
Ign:1 http://deb.debian.org/debian trixie InRelease                                                                                         
Ign:6 http://deb.debian.org/debian trixie-updates InRelease
Err:1 http://deb.debian.org/debian trixie InRelease
  Temporary failure resolving 'deb.debian.org'
Err:6 http://deb.debian.org/debian trixie-updates InRelease
  Temporary failure resolving 'deb.debian.org'
All packages are up to date.     
Warning: Failed to fetch http://deb.debian.org/debian/dists/trixie/InRelease  Temporary failure resolving 'deb.debian.org'
Warning: Failed to fetch http://security.debian.org/debian-security/dists/trixie-security/InRelease  Temporary failure resolving 'security.debian.org'
Warning: Failed to fetch http://deb.debian.org/debian/dists/trixie-updates/InRelease  Temporary failure resolving 'deb.debian.org'
Warning: Failed to fetch https://dl.google.com/linux/chrome/deb/dists/stable/InRelease  Temporary failure resolving 'dl.google.com'
Warning: Failed to fetch https://repo.vivaldi.com/stable/deb/dists/stable/InRelease  Temporary failure resolving 'repo.vivaldi.com'
Warning: Failed to fetch https://packages.microsoft.com/repos/code/dists/stable/InRelease  Temporary failure resolving 'packages.microsoft.com'
Warning: Some index files failed to download. They have been ignored, or old ones used instead.

Observe there are some Err messages

The apt upgrade works until “some point”

Note

When is opened any web browser is not possible access any web page

Therefore due the blackout I am assuming something is perhaps “corrupt”. What to do?

Thanks in advance

Restore the system to the previous backup.
That is a good example of why backups are necessary.
Powerouts during updates are disasters… restore backup or reinstall.

If you have Timeshift active you could also try this option.

Good Luck.

Did you already try re-booting your OS?

You can try

sudo apt clean

sudo apt -f install or re-run sudo apt update && sudo apt upgrade

Have you tried to ping 8.8.8.8 ? Or google.com? What ip a says? Also you can try wget -qO- www.ipecho.net/plain ; echo

If any of these work you have some kind of net access. If all work your web browser is corrupted during the power failure.

Here’s my laptop’s terminal with these commands (I’ve left the output of the wget off because it shows my IP)

Hi @Manuel_Jordan,

Sometimes restarting the network manager will work with out perform a restore.

sudo systemctl restart NetworkManager systemd-resolved
sudo systemctl restart networking

Looks like DNS to me…

I have occasional Internet problems, mostly involving my browser. As a sanity check, I make sure my LAN is working by going to my router’s home page, (192.168.8.1, but different routers use different addresses). If I get the router login screen, then I know the lan is working. Then it’s really an Internet problem.

A problem with interrupting apt is that it uses several lock files and I have a script that unlocks them, but from you description, that’s not your problem. The errors you show are what happens when your Internet access isn’t quite right and I’m not as good at fixing that.

Usually internet problems are DNS failures. Sometimes setting a different nameserver helps, but apart from that there is little you can do except wait for the nameserver to be fixed.
Major outages can sometimes be identified by checking with your ISP.
Minor local problems, like your modem needing a reboot or not functioning, need you to intervene.

Yeah. I know all the easy stuff.

What I’m seeing now is that when I launch Vivaldi the first time after a reboot, it can’t even see the LAN, but if I close and reopen it, it works. Zen doesn’t have this problem.

Hopefully, this is just because of my ancient distro (I’m still running Kubuntu 18.04 on my old notebook).