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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-16-2008, 05:58 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8
Rep:
|
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.
|
|
|
|
05-17-2008, 08:10 AM
|
#2
|
|
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,244
Rep:
|
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.
|
|
|
|
05-17-2008, 05:57 PM
|
#3
|
|
LQ Newbie
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8
Original Poster
Rep:
|
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?
|
|
|
|
05-17-2008, 07:45 PM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,288
|
Just do a "cat /etc/hosts" from a terminal. Should have an entry for localhost and your PC name - presumably kiwipete.
|
|
|
|
05-17-2008, 07:54 PM
|
#5
|
|
LQ Newbie
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8
Original Poster
Rep:
|
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:~$
|
|
|
|
05-17-2008, 08:06 PM
|
#6
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,288
|
Presumably /etc/hostname has "Ubuntu-laptop" - I think the hosts file has to agree (line 2).
|
|
|
|
05-17-2008, 08:12 PM
|
#7
|
|
LQ Newbie
Registered: Apr 2008
Location: New Zealand
Distribution: Hardy Heron
Posts: 8
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|