LinuxQuestions.org
Visit Jeremy's Blog.
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-26-2010, 01:37 AM   #1
cusri2004
LQ Newbie
 
Registered: Aug 2009
Location: Wellington
Distribution: Ubuntu Lucid Lynx
Posts: 27

Rep: Reputation: 15
apt-get doesn't seem to work


I could not get apt-get work for the past few days whereas synaptic and update manager work perfectly alright.

apt-get just leaves the terminal waiting forever.

sudo apt-get update
Release: lucid
Please wait...

it doesn't seem to go any ahead of this line.
 
Old 06-26-2010, 01:39 AM   #2
Onoir
LQ Newbie
 
Registered: May 2010
Posts: 24

Rep: Reputation: 15
Use aptitude. Its faster and also command-line.
 
Old 06-26-2010, 10:54 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by cusri2004 View Post
I could not get apt-get work for the past few days whereas synaptic and update manager work perfectly alright.

apt-get just leaves the terminal waiting forever.

sudo apt-get update
Release: lucid
Please wait...
Well that is weird indeed!
Update Manager in Ubuntu is simply a GUI front end for:
Code:
sudo apt-get update
sudo apt-get dist-upgrade
Running those commands on my Ubuntu 10.04 system is very fast.
I don't even get that message "Release lucid" after running sudo apt-get update.
The repositories just update one by one.

Just out of curiosity, what happens if you run:
Code:
sudo aptitude update
Also, what happens if you try a different mirror for your software repositories?

Last edited by tommcd; 06-26-2010 at 11:02 AM.
 
Old 06-27-2010, 01:44 AM   #4
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,204

Rep: Reputation: Disabled
Arrow

Quote:
Originally Posted by Onoir View Post
Use aptitude. Its faster and also command-line.
Bad idea. You better don't mix 'em up together.
 
Old 06-27-2010, 09:45 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 287Reputation: 287Reputation: 287
Quote:
Originally Posted by Mr. Alex View Post
Bad idea. You better don't mix 'em up together.
This is true. Seasoned Debian users will tell you to either use apt-get exclusively, or use aptitude exclusively. Aptitude and apt-get do handle dependencies a bit differently.
I always recommend using apt-get instead of aptitude in Ubuntu in order to maintain consistency with Ubuntu's update manager.

I just want to try to troubleshoot why the OP can run update manager and synaptic without problems, but apt-get just hangs. I don't believe I have ever seen this before.

Last edited by tommcd; 06-27-2010 at 09:49 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how does apt-get work csushil Linux - Software 2 04-02-2010 04:16 AM
Apt-get refuses to work now jon_k Linux - Software 1 03-25-2005 03:55 PM
apt won't work jojo46 Linux - Newbie 5 09-14-2004 06:57 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-11-2003 12:39 AM
Getting apt-get to work? Megamieuwsel Linux - Software 2 09-17-2003 12:08 PM


All times are GMT -5. The time now is 11:27 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration