Every time I try to use software updater, I get an error failed to download repository information. I think I might have screwed up the list. How do I go back to original sources?
which release 20.04 or 20.10 ?
20.10 release, I hope there is an easy way to fix this.
deb http://us.archive.ubuntu.com/ubuntu/ groovy main multiverse restricted universe
deb http://us.archive.ubuntu.com/ubuntu/ groovy-updates main multiverse restricted universe
deb http://us.archive.ubuntu.com/ubuntu/ groovy-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu groovy-security main restricted universe multiverse
sudo cp /etc/apt/sources.list /etc/apt/sources.bak
replace /etc/apt/sources.list with the 4 lines I typed.
sudo apt update && sudo apt upgrade should be clean
I am not sure what you mean, sorry to be a pain. Would you please type the first one, so I could see how it looks? Thanks.
You have a file, /etc/apt/sources.list That file contains information which repositories to update from. You wrote that you probably messed up since you cannot sudo apt update. If you show the errors you get, we could help. I provided the 4 lines that a clean UM 20.10 sources.list file should look like.
There are many erros file to large. Duplicate fetching etc.
If you can type a sample line I could cut and paste in via SSH. When I go to etc/apt I have a file says sources.list another sources.list.save a folder sources.list.d
Two things -
- are you running on a raspberry pi ?
- you wrote 20.10 but I see focal references (20.04)
Raspberry Pi 4B version 20.04.
I don't have a Pi 4B so someone else could try and help.
Please tag your original post with Raspberry Pi so that people know the hardware platform.
OK Thanks. I will do that.
My /etc/apt/sources.list on a Pi4B with 20.04 looks like:
deb http://ports.ubuntu.com/ubuntu-ports/ focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ focal-updates main restricted universe multiverse
HTH
Derek
Hello,
somehow I messed my /etc/apt/sources.list on Ubuntu 20.10 (lot of IP not found error). I have applied your list and it worked. You think there will be issues because of list from 20.04 into 20.10?