Find the answer to your Linux question:
Results 1 to 4 of 4
Hi folks, Host - Debian 5.0 32bit VM - Ubuntu 9.10 32bit KVM On running $ sudo apt-get update Code: err http://hk.archive.ubuntu.com karmic release.gpg could not resolve 'hk.archive.ubuntu.com' ...... The ...
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    apt-get update fails

    Hi folks,

    Host - Debian 5.0 32bit
    VM - Ubuntu 9.10 32bit
    KVM

    On running
    $ sudo apt-get update
    Code:
    err http://hk.archive.ubuntu.com karmic release.gpg
    could not resolve 'hk.archive.ubuntu.com'
    ......
    The feature System --> Shutdown/Restart/etc. are missing

    Please help. TIA

    B.R.
    satimis

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,975
    Most likely your DNS servers are down, your /etc/resolv.conf is pointing to the wrong DNS servers, or the site itself is down. What virtual machine manager are you using?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546
    Quote Originally Posted by Rubberman View Post
    Most likely your DNS servers are down, your /etc/resolv.conf is pointing to the wrong DNS servers, or the site itself is down.
    Hi Rubberman,

    Just checked /etc.resolv.conf. DNS servers are correct.


    What virtual machine manager are you using?
    Gnome
    Applications -> System Tools - Virtual Machine Manager


    I have another problem here.

    Gnome
    Applications -> System Tools - Virtual Machine Manager

    popup following error;
    Code:
    Traceback (most recent call last):
      File "/usr/share/virt-manager/virt-manager.py", line 346, in <module>
        main()
      File "/usr/share/virt-manager/virt-manager.py", line 248, in main
        setup_logging()
      File "/usr/share/virt-manager/virt-manager.py", line 124, in setup_logging
        os.mkdir(vm_dir)
    OSError: [Errno 17] File exists: '/home/satimis/.virt-manager'
    $ ls -al /home/satimis/ | grep virt-manager
    Code:
    drwxr-xr-x  2 root    root           4096 2009-05-31 06:11 .virt-manager

    $ mv /home/satimis/.virt-manager /home/satimis/.virt-manager.old01

    Restart
    Applications -> System Tools - Virtual Machine Manager

    starting GUI virt-manager but without asking for login as root

    $ ls -al /home/satimis/ | grep virt-manager
    Code:
    drwxr-xr-x  2 satimis  satimis        4096 2010-01-31 10:00 .virt-manager

    If changing the owner by running
    $ sudo chown root:root /home/satimis/.virt-manager

    GUI virt-manage can't start with abovementioned warning pop.


    I'm now running "virt-manager" as user (satimis)


    Edit:

    Ah, I know the problem. bridge-utils is not installed on this VM. Therefore it can't connect Internet. I'm trying to run "apt-get update" and then "apt-get install bridge-utils". Any solution? Thanks


    TIA
    satimis
    Last edited by satimis; 02-02-2010 at 04:30 AM.

  4. #4
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,546

    Solved

    Hi folks,

    Problem solved as follow;

    Edit /etc/network/interfaces;
    change
    Code:
    # The primary network interface
    auto eth0
    iface eth0 inet manual
    as
    Code:
    # The primary network interface
    auto eth0
    iface eth0 inet dhcp
    and comment out all bridge items

    $ sudo /etc/init.d/networking restart

    Run;
    - aptitude update
    - aptitude upgrade
    - aptitude install bridge-utils

    Re-edit /etc/network/interfaces and reinstate all previous settings.

    $ sudo /etc/init.d/networking restart

    Update problem gone. The network is running at static IP

    However the problem of "virt-manager" is still existing


    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...