Problems with update manager after trying to modify sources.list

Asked by LEGOManiac

I have installed apt-cacher on my new server and tried to modify /etc/apt/sources.list to include the server and port number. That failed. I figured I had a server-side problem and tried to go back to the original sources.list, which I stupidly didn't make a backup of. Now I get the following error whenever I try to update:

Error authenticating some packages. It was not possible to authenticate some packages. This may be a transient network problem. You may want to try again later. See below for a list of unauthenticated packages.

Googleing this, I came across some advice from Marco Braida, here on launchpad:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

I did this, to no avail. It should be noted there are errors during the dist-upgrade stage. I'm running it again to see what the error messages were, but that will take another 40 minutes. I'll post them when it's done.

In the mean time, here is my sources.list, comments removed:

deb http://ca.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://ca.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid-updates main restricted

deb http://ca.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid universe
deb http://ca.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://ca.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://ca.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

deb http://ppa.launchpad.net/zentyal/2.0/ubuntu lucid main

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
deb http://archive.canonical.com/ubuntu lucid partner

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt-cacher-ng Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#1

Well things went from bad to worse.

After running sudo apt-get dist-upgrade the second time I went to post my results here only to discover that I did not have network access. I couldn't start network manager. So I rebooted.

Now, when I reboot, I get the warning about X running in low graphics mode, which I can't change and when I tell it to go ahead and start anyway, it goes to the Ubuntu 10.10 screen splash screen with the logo and the 4 dots that cycle to indicate activity and it just hangs there.

I'm now running a live lubuntu session on that machine and I'll definitely need some help fixing this as I really don't have an idea where to go from here.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#2

To configure apt-cacher or better apt-cacher-ng for your lan please simply install apt-cacher-ng

apt-cacher-ng default listen on port 3142 of your ip

if you want to configure apt-cacher-ng type:

gksudo gedit /etc/apt-cacher-ng/acng.conf

to start or restart:

sudo /etc/init.d/apt-cacher-ng restart

to use in your lan on all client create a file:

gksudo gedit /etc/apt/apt.conf.d/proxy

and put this row:

Acquire::http::proxy "http://127.0.0.1:3142/";

on the other lan pc:
Acquire::http::proxy "http://user_proxy:user_passwd@proxy_ip:proxy_port/";

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

Better

To configure apt-cacher or better apt-cacher-ng for your lan please simply install apt-cacher-ng

apt-cacher-ng default listen on port 3142 of your ip

if you want to configure apt-cacher-ng type:

gksudo gedit /etc/apt-cacher-ng/acng.conf

to start or restart:

sudo /etc/init.d/apt-cacher-ng restart

to use in your local pc create a file:

gksudo gedit /etc/apt/apt.conf.d/proxy

and put this row:

Acquire::http::proxy "http://127.0.0.1:3142/";

Then view the local pc ip, type:

ifconfig

and look for ip of your nic

on the other lan pcs create a file:

gksudo gedit /etc/apt/apt.conf.d/proxy

and put this row:

Acquire::http::proxy "http://apt-cacher-ng_pc_ip:apt-cacher-ng_pc_proxy_port/";

To test apt-cacher-ng type:

sudo apt-get update
sudo apt-get dist-upgrade

Hope this helps

Revision history for this message
LEGOManiac (bzflaglegomaniac) said :
#4

Thanks Marcobra. I wasn't aware there was a new version of apt-cacher. I'll try it when I have the workstation working again. In the mean time, I've posted a question about how to fix it.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

it is a different package...

Please put into your /etc/apt/sources.list

deb http://archive.ubuntu.com/ubuntu/ lucid main restricted

deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted

deb http://archive.ubuntu.com/ubuntu/ lucid universe
deb http://archive.ubuntu.com/ubuntu/ lucid-updates universe

deb http://archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://archive.ubuntu.com/ubuntu/ lucid-updates multiverse

deb http://archive.canonical.com/ubuntu lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://archive.ubuntu.com/ubuntu/ lucid-security main restricted
deb http://archive.ubuntu.com/ubuntu/ lucid-security universe
deb http://archive.ubuntu.com/ubuntu/ lucid-security multiverse

Can you help with this problem?

Provide an answer of your own, or ask LEGOManiac for more information if necessary.

To post a message you must log in.