LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-08-2013, 02:22 PM   #1
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Rep: Reputation: 114Reputation: 114
cannot update ubuntu 12.04


Hi guys,

Firstly, my /etc/apt/sources.list file is ruined. ive made various changes without making a backup before hand.

The current issues im having is:

1) Cannot preform sudo apt-get update. I get the following output. (by the way this is my first attempt at the "code" option.)

Code:
gn http://us.archive.ubuntu.com hardy InRelease
Ign http://us.archive.ubuntu.com hardy-updates InRelease                      
Err http://us.archive.ubuntu.com hardy Release.gpg                             
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://us.archive.ubuntu.com hardy-updates Release.gpg                     
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Ign http://us.archive.ubuntu.com hardy Release                                 
Ign http://us.archive.ubuntu.com hardy-updates Release                         
Ign http://us.archive.ubuntu.com hardy/multiverse TranslationIndex                                              
Ign http://archive.ubuntu.com precise InRelease                                                                 
Ign http://archive.ubuntu.com precise-updates InRelease                        
Ign http://us.archive.ubuntu.com hardy-updates/multiverse TranslationIndex     
Ign http://security.ubuntu.com precise-security InRelease                                                       
Err http://security.ubuntu.com precise-security Release.gpg                                                     
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Ign http://security.ubuntu.com precise-security Release                        
Ign http://security.ubuntu.com precise-security/universe i386 Packages/DiffIndex
Ign http://security.ubuntu.com precise-security/main i386 Packages/DiffIndex   
Ign http://security.ubuntu.com precise-security/main TranslationIndex          
Ign http://security.ubuntu.com precise-security/universe TranslationIndex      
Ign http://archive.ubuntu.com precise-proposed InRelease                                                        
Ign http://archive.ubuntu.com precise-backports InRelease                                                       
Err http://archive.ubuntu.com precise Release.gpg                              
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise-updates Release.gpg                      
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise-proposed Release.gpg                     
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com precise-backports Release.gpg                    
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Ign http://archive.ubuntu.com precise Release                                  
Ign http://archive.ubuntu.com precise-updates Release                          
Ign http://archive.ubuntu.com precise-proposed Release                         
Ign http://archive.ubuntu.com precise-backports Release                                                         
Ign http://archive.ubuntu.com precise/main TranslationIndex                                                     
Ign http://archive.ubuntu.com precise/universe TranslationIndex                                                 
Ign http://archive.ubuntu.com precise-updates/main TranslationIndex                                             
Ign http://archive.ubuntu.com precise-updates/universe TranslationIndex                                         
Err http://us.archive.ubuntu.com hardy/multiverse Sources                                                       
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://us.archive.ubuntu.com hardy/multiverse i386 Packages                                                 
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://us.archive.ubuntu.com hardy-updates/multiverse Sources                                               
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Ign http://archive.ubuntu.com precise-proposed/main TranslationIndex                                            
Ign http://archive.ubuntu.com precise-proposed/universe TranslationIndex                                        
Err http://us.archive.ubuntu.com hardy-updates/multiverse i386 Packages                                         
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://us.archive.ubuntu.com hardy/multiverse Translation-en_US                                             
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Ign http://archive.ubuntu.com precise-backports/main TranslationIndex                                           
Ign http://archive.ubuntu.com precise-backports/universe TranslationIndex                                       
Err http://us.archive.ubuntu.com hardy/multiverse Translation-en                                                
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://security.ubuntu.com precise-security/universe i386 Packages                                          
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://security.ubuntu.com precise-security/main i386 Packages                                              
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://security.ubuntu.com precise-security/main Translation-en_US         
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://security.ubuntu.com precise-security/main Translation-en            
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://security.ubuntu.com precise-security/universe Translation-en_US     
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://security.ubuntu.com precise-security/universe Translation-en        
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://us.archive.ubuntu.com hardy-updates/multiverse Translation-en_US    
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
Err http://us.archive.ubuntu.com hardy-updates/multiverse Translation-en       
  Something wicked happened resolving 'www-proxy.ericsson.se:8080' (-5 - No address associated with hostname)
24% [Connecting to www-proxy.ericsson.se]
As you can see somewhere along the line i manged to add ericsson somewhere along the way but cannot seem to find it anywhere. It just hangs at 24%.

2) I cannot update via Ubuntu Update Manager. I get the following error: Requires installation of untrusted packages. The action would require the installation of packages from not authenticated sources.

My question would be how to restore the folder to default and be able to update via apt.

Thank you
Marios
 
Old 06-09-2013, 09:36 AM   #2
Sigg3.net
Member
 
Registered: Mar 2008
Location: Oslo, Norway
Distribution: Slackware 14.1 64-bit, Ubuntu 15.10, Fedora 17, Ubuntu 12 LTS and Ubuntu server 10.04
Posts: 173

Rep: Reputation: 28
I sometimes have to switch from national (Norwegian) repositiories to the US repos in order to get the downloads.. I do this in Synaptic.

See also http://www.tuxgarage.com/2011/01/res...-defaults.html
 
Old 06-09-2013, 10:42 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Ubuntu> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 06-09-2013, 11:07 AM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
It looks like you are configured to use a web proxy but are unable to resolve it to an ip address.

Are you able to browse the web?
Anyway, give this a try

Code:
unset http_proxy https_proxy
sudo apt-get update
if that fails
Code:
sudo -i
unset http_proxy https_proxy
apt-get update
exit
NB, the unset will only apply to that shell session you will need to look at fixing your global network proxy setting to make it perminant

However
The fact that you don't seem to be able to resolve the proxy means that you probably won't be able to relsolve the repositiories either.
Hope that helps
 
Old 06-09-2013, 01:07 PM   #5
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
It would be good to also post your complete /etc/apt/sources.list.
 
Old 06-10-2013, 04:53 AM   #6
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Original Poster
Rep: Reputation: 114Reputation: 114
Smile

Hi Guys,

Thanks for your valuable input.

Yes, i am able to browse the internet without any problems

I will certain try what Firerat has mentioned. widget I will post my /etc/apt/sources.list as soon as humanly possible.

Much appreciated,
Marios
 
Old 06-10-2013, 07:33 AM   #7
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Original Poster
Rep: Reputation: 114Reputation: 114
Hi Guys,

Here is the output:

Code:
deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb http://archive.ubuntu.com/ubuntu precise universe main
deb http://security.ubuntu.com/ubuntu/ precise-security universe main
deb http://archive.ubuntu.com/ubuntu precise-updates universe main
deb http://archive.ubuntu.com/ubuntu precise-proposed universe main
deb http://archive.ubuntu.com/ubuntu precise-backports universe main
mariose@TINY-LT:~$
As you can see it is nothing compared to what it used to look like. This is the complete (short) list :P

Best Regards
Marios
 
Old 06-10-2013, 09:21 AM   #8
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Well you can be sure that the "hardy" entries are not of any use. That is a reference to the 8.04 repos and should be removed.

You can get a good copy of the default sources.list here;
http://ubuntuguide.org/wiki/Ubuntu_P...y_sources_list

That entire page may be of some help to you also.

That site is a good resource for folks using Ubuntu and its off spring.
 
Old 06-10-2013, 01:42 PM   #9
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by widget View Post
Well you can be sure that the "hardy" entries are not of any use. That is a reference to the 8.04 repos and should be removed.

You can get a good copy of the default sources.list here;
http://ubuntuguide.org/wiki/Ubuntu_P...y_sources_list

That entire page may be of some help to you also.

That site is a good resource for folks using Ubuntu and its off spring.
Thanks for your valuable input guys. I will certainly look into it!

Thank you.

Marios

---------- Post added 10-06-13 at 09:43 PM ----------

Hi Guys,

I will mark the post as solved for now until I can investigate further.

Thanks again
 
Old 06-11-2013, 09:04 AM   #10
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Original Poster
Rep: Reputation: 114Reputation: 114
Wink

This has officially been solved.

Thank you everyone for you input!
 
Old 06-11-2013, 11:51 PM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by mariose View Post
This has officially been solved.

Thank you everyone for you input!
I'm guessing Widget's default sources.list link was the fix?
 
Old 06-12-2013, 01:09 AM   #12
Gad
Member
 
Registered: May 2013
Distribution: FreeBSD
Posts: 566

Original Poster
Rep: Reputation: 114Reputation: 114
Quote:
Originally Posted by Firerat View Post
I'm guessing Widget's default sources.list link was the fix?
Funny you mentioned it. It was a combination of both the sources.list file as well as the system proxy setting. Which was strange cause i was able to connect to all my networks without any issues.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deepin Update is Dead Slow. Can I use Ubuntu Update? yurmuki Linux Deepin 7 07-15-2014 11:41 AM
Zorin (ubuntu based): ubuntu-desktop wasn't able to update itself szdavid24 Linux - Newbie 4 03-09-2012 07:13 AM
ubuntu software center in ubuntu 11.10 not running and update manager error quazisaad Linux - Newbie 2 11-30-2011 11:43 AM
LXer: Ubuntu Software Center Receives Major User Interface Update, More [Ubuntu 10.10 LXer Syndicated Linux News 0 06-29-2010 06:50 PM
Unable to upgrade to ubuntu 7.10, update manager fails to update.... jonbvgood Linux - Software 2 02-05-2008 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration