Software Update issue

Asked by Mohammed Habeeb Rehan

Hello,

I am using Ubuntu 11.04 and I've 42 updates in update manager. When I click on "Install Updates" in update manager, the following error message is shown:

"Requires installation of untrusted packages
The action would require the installation of packages from not authenticated sources."

"Failed to download the list of changes.
Please check your Internet connection."

Please help me resolve this issue and install the updates in update manager.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

sudo apt-get update; lsb_release -a

Thanks

The GUI apps are nice but they give nearly zero information when things aren't right.

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#2

I got this error:

"W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg Unable to connect to 192.168.3.254:8080:

W: Some index files failed to download. They have been ignored, or old ones used instead.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric "

Revision history for this message
Miha Gašperšič (miha.gaspersic) said :
#3

Hi Mohammed,

please check if you have connected your computer to internet or if you might have some issues with connection. Also make sure, that you have all ppa's for your packages allowed.

If that helps you solve your question, please mark thread as solved.

Regards,
Miha

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#4

I've checked the internet connection, it's working properly. I am able to browse,download,etc. on the internet to which I am connected to.

Can you please tell me, how to check whether all ppa's are allowed for packages ?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

Do you use a proxy for web access?

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#6

No, I don't use proxy for web access.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

As you can see from #2 you have had one defined. I suggest you check in /etc/apt/apt.conf as well as run:

echo http_proxy
echo ftp_proxy

Do they output anything?

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#8

I'm sorry, I was unaware. I just checked and I think that I'm using proxy.

The output when I run the above are:

http_proxy
ftp_proxy

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

sorry, try:

echo $http_proxy
echo $ftp_proxy

Also what is the output of:

drep -R -i proxy /etc/apt/*

Thanks

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#10

After running the commands from #9, I got the following output for first 2 commands:

http://192.168.3.254:8080/
ftp://192.168.3.254:8080/

When I run "drep -R -i proxy /etc/apt/*", it says that the:

drep: command is not found

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Sorry:

grep -R -i proxy /etc/apt/*

you should also run:

grep http ~/.bashrc

What is output?

You have added a proxy (or someone has) now we need to carve it out.

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#12

I have run both the commands but there was no output until I pressed "ctrl+c".

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#13

ok run:

gksudo gedit /etc/apt/apt.conf

comment the lines out by adding a hash to the start of the line.

You should then run:

unset http_proxy
unset ftp_proxy

Then retry

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#14

After running:

gksudo gedit /etc/apt/apt.conf

apt.conf gedit was opened in which there were four lines, each ending with a semi-colon(;), I've commented all the lines by adding hash(#) at the beginning of each line.

Then I run the commands:

unset http_proxy
unset ftp_proxy

After this I again tried to run:

grep -R -i proxy /etc/apt/*
grep http ~/.bashrc

But still there was no output until I pressed "ctrl+c".

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#15

ok then run:

sudo apt-get update

Is it smooth?

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#16

Yeah. It worked, all of the updates have been installed.

Thank you very much.

Revision history for this message
Mohammed Habeeb Rehan (iamhabeebrehan) said :
#17

Thanks actionparsnip, that solved my question.