LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2008, 05:58 AM   #1
kiwipete
LQ Newbie
 
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8

Rep: Reputation: 0
Synaptic Package Manager


Hello all. I am a relative noob at linux, having installed Ubuntu Hardy Heron on my Laptop as a clean install some 3 weeks ago.
I have been experimenting with many different commands I have come across on the forums etc with the Terminal program.
Now my problem is this.
If I go to System, Administration, Synaptic Package Manager or Software Sources, they both try to open and then quit on loading.
I can however use the sudo apt-get install command from Terminal ok, but it displays this wierd text; kiwipete@Ubuntu-laptop:~$ sudo apt-get update
sudo: unable to resolve host Ubuntu-laptop
[sudo] password for kiwipete:
After I type my password everything seems ok.
Finally on the command bar at the top of the screen the package manager displays a red downward pointing arrow with an exclamation mark in it.
When I select to install packages, it hangs and I need to go to System Monitor to end the process.

Any help will be gratefully received.

Thanks, Kiwipete.
 
Old 05-17-2008, 08:10 AM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Try running the command

sudo dpkg --configure -a

See if that helps.

If not, you'll need to boot into recovery mode and edit your /etc/hosts file as something may be wrong there.

Playing around with various command you find on forums without knowing what they actually do is dangerous to your system. Enter the wrong command you can trash your system or create problems.

Only enter a command that you actually need, and make sure to read the man page for it to fully understand exactly what it does and how to use it.

Last edited by masonm; 05-17-2008 at 08:11 AM.
 
Old 05-17-2008, 05:57 PM   #3
kiwipete
LQ Newbie
 
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8

Original Poster
Rep: Reputation: 0
Hello Mason, thanks for the reply. I tried that command and it diddnt seem to make any difference.
I will now try your suggestion of re-booting into recovery mode and have a look at the /etc/hosts file.
Is there something specific I should look for here?
 
Old 05-17-2008, 07:45 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Just do a "cat /etc/hosts" from a terminal. Should have an entry for localhost and your PC name - presumably kiwipete.
 
Old 05-17-2008, 07:54 PM   #5
kiwipete
LQ Newbie
 
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8

Original Poster
Rep: Reputation: 0
This is what is displayed.........

kiwipete@Ubuntu-laptop:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 Ubuntu-laptop.Kiwipetes Wireless Network

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
kiwipete@Ubuntu-laptop:~$
 
Old 05-17-2008, 08:06 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Presumably /etc/hostname has "Ubuntu-laptop" - I think the hosts file has to agree (line 2).
 
Old 05-17-2008, 08:12 PM   #7
kiwipete
LQ Newbie
 
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8

Original Poster
Rep: Reputation: 0
I think I have it sorted now thanks.
I edited the text below and took out the .Kiwipetes Wireless Network. It all seems to be working just fine and dandy now.
I have no idea how I mucked it up, tweaking too many things I assume and poking my nose in where it shouldnt be.

kiwipete@Ubuntu-laptop:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 Ubuntu-laptop.Kiwipetes Wireless Network


Here is the thread that helped me solve it. http://ubuntuforums.org/showthread.php?t=797442

Last edited by kiwipete; 05-18-2008 at 01:31 AM.
 
  


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
no synaptic package manager unisol Debian 1 01-09-2007 07:23 AM
synaptic package manager... usien Linux - General 1 01-07-2007 01:51 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 06:33 PM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM
Synaptic Package Manager bignester Linux - Software 1 09-08-2005 04:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:03 PM.

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