LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I update using Update Manager when there is a failure to download packages? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-update-using-update-manager-when-there-is-a-failure-to-download-packages-4175436568/)

oldminer90 11-10-2012 12:11 PM

How do I update using Update Manager when there is a failure to download packages?
 
I am trying to update for the first time after a new installation.
Being new to linux, I don't know where to start to fix this problem
and do not understand the "simular threads" disscussion.
Please advise.


1) Went to Update Manager and copied the following:
(190 MB will be downloaded)

Installed version 2.7.102 – Oubuntu 3.1
Available version 2.7.102 – Oubuntu 3.4

2) Clicked on “Install Updates”
3) Monitor showed: Applying Changes – waiting
4) Returned to pc after a while;
Found Message: FAILED TO DOWNLOAD PACKAGES

DETAILS WERE AS FOLLOWS:

Failed to fetch http://us.archive.ubuntu.com/ubuntu/...buntu5_all.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/...buntu5_all.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/...buntu5_all.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/...buntu5_all.deb 404 Not Found [IP: 91.189.91.14 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/...buntu5_all.deb 404 Not Found [IP: 91.189.91.14 80]

Xlr_Prahlad 11-10-2012 09:17 PM

Hello oldminer90,

Try to update it from terminal :
sudo apt-get update && sudo apt-get upgrade
if any error comes up post it

oldminer90 11-11-2012 11:39 AM

Greetings: Xlr_Prahlad

Terminal update attempt returned error 2 ie.

Processing triggers for man-db...
Processing triggers for install-info...
dpkg:error:dpkg status database is locked by another process
E: sub-process/usr/bin/dpkg returned an error code (2)

oldminer90

Xlr_Prahlad 11-11-2012 12:03 PM

Quote:

Originally Posted by oldminer90 (Post 4827090)
Greetings: Xlr_Prahlad

Terminal update attempt returned error 2 ie.

Processing triggers for man-db...
Processing triggers for install-info...
dpkg:error:dpkg status database is locked by another process
E: sub-process/usr/bin/dpkg returned an error code (2)

oldminer90

I think this might help you
restart your computer and open up the terminal and type in the following commands:
sudo rm /var/lib/dpkg/lock"
then sudo rm /var/cache/apt/archives/lock
after that sudo dpkg --configure -a

Now upadte your Ubuntu it should work .

oldminer90 11-11-2012 07:55 PM

Greetings: Xlr_Prahlad

Entered:
sudo rm /var/cache/apt/archives/lock
then sud rm /var/cache/apt/archives/lock
after that sudo dpkg – configure -a

returned :

rm: unrecognized option '--configure'
Try 'rm –help' for more informatiion

Entered
'rm –help'

(read the information 3 or 4 times – not real clear – looks
like conditions – not real sure what they mean nor what they
will do)

Returned to GUI and update manager and clicked on “update”

This time a window came up :
“requires installation of packages from not authenticated sources”

Decided to ask what these “not authenticated sources” might be?

Should these "not authenticated souces" be a concern of worry?

Thanks,
Oldminer90

Xlr_Prahlad 11-11-2012 09:12 PM

I dont know why its returns an error but it works fine on mine . check again there's a possiblity that you have not written the commands properly .
As for not authenticated sources i dont think think there is any thing to wory about.
use only
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get upgrade


All times are GMT -5. The time now is 10:59 PM.