1

When I try to install via terminal using :

sudo apt-get install virt-manager

I get this message :

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package virt-manager

I'm using Ubuntu 13.04 64bits

Main and Universe packages are allowed.

Nasreddine
  • 1,497
  • 3
  • 16
  • 21
  • 2
    virt-manager is located in the main repositories. What distro and version are you using? Have you refreshed the packages list before with sudo apt-get update? – Lekensteyn Jan 25 '14 at 20:28
  • I'm using Ubuntu 13.04, main repos are also enabled. Yes, I've updated packages many times. – Nasreddine Jan 26 '14 at 16:06
  • Please add the output of apt-cache policy and the output after running sudo apt-get update. – Lekensteyn Jan 26 '14 at 22:23
  • apt-cache policy outputs a long content that I can't add to the post. However, it displays packages URLs that have 500, or 100 before them. Upate command shows the following errors at the end:

    W: Failed to fetch http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu/dists/raring/main/binary-amd64/Packages 404 Not Found

    W: Failed to fetch http://ppa.launchpad.net/lucid-bleed/ppa/ubuntu/dists/raring/main/binary-i386/Packages 404 Not Found

    E: Some index files failed to download. They have been ignored, or old ones used instead.

    – Nasreddine Jan 27 '14 at 19:27
  • 1
    How did you install Ubuntu? Audit the contents of the /etc/apt/sources.list file and the /etc/apt/sources.list.d/ directory. If it apt-cache policy does not fit in the post, use http://paste.ubuntu.com/ – Lekensteyn Jan 27 '14 at 20:00
  • 2
    I bought it with pre-installed version (12.04), then upgrade it to 13.04. apt-cache policy output http://paste.ubuntu.com/6836482/ sources.list content http://paste.ubuntu.com/6836484/ sources.list.d directory content : http://paste.ubuntu.com/6836490/ – Nasreddine Jan 29 '14 at 07:49
  • I should be able to install after updating sudo apt-get update Thanks for the support. Karan –  Jul 18 '14 at 09:09

2 Answers2

2

I had this problem in 22.04 jammy because virt-manager is in universe, and I did not have universe in my sources.list.d.

The solution was to add these two lines (update jammy with your release name) to /etc/apt/sources.list:

deb http://us.archive.ubuntu.com/ubuntu jammy universe restricted
deb-src http://us.archive.ubuntu.com/ubuntu jammy universe restricted

Reference

0

You don't really need all PPAs. If you install Flash player + Chromium, you can remove the Chrome PPA. By reducing the number of external repositories, your packages list will be refreshed must faster.

Mixing multiple distro versions is a bad idea. You now have both Precise and Raring enabled in your sources.list. Since Raring is end-of-life since 27 January 2014, the Raring packages will vanish from the main repos soon. You need to replace your hosts by old-releases.ubuntu.com as described in this question.

Lekensteyn
  • 174,277