E: unable to locate package libvirt-bin & vir-manager

hi there , i followed the instructions of installing kvm in debian jessie stable according to this link:-

but the process cant be establish, c the image:-

should i add something to make apt-get able to find the package ?

thnx

Please update the repo metadata first before attempting to install these packages. Run:

sudo apt-get update sudo apt-get install qemu-kvm libvirt-bin virt-manager

well i have mentioned that i have followed the instructions in the link which mean i did run apt-get update, however the problem is there. c this :-

Strange. Can you try

sudo apt-cache search virt-manager
sudo apt-cache search libvirt-bin

and report back?

I’ve checked the package names in Debian packages and they haven’t changed. If you see nothing in the results, try refreshing the package information once more as there could have been problems fetching it the first time.

Have you tried installing other software did they work?

sure , i did try them but nothing appeared after applying them, is that what it meant for ? c this:-

also i have tried to install something else for e.g wine , it worked and the package is there c this:-

so i donno how can i help this further , hope u can find the right solution or tell me what should i do to solve it. thnx for ur time tho :slight_smile:

There are a couple of things we can still try.

Do you have synaptic installed? Install this graphical front-end then try searching and installing the packages from there. Either that or try using: sudo aptitude install virt-manager

If it doesn’t work, try:

Delete everything in there and paste these lines with CTRL+SHIFT+V:

deb http://ftp.us.debian.org/debian jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

exit with CTRL+X
save with CTRL+M

and run apt-get update as root again then see if it works.

here r the results of them:-

  • sudo aptitude install virt-manager

http://i.imgur.com/2qc7Gy7.jpg

  • sudo nano edit /etc/apt/sources.list

http://i.imgur.com/csnUGZO.jpg

  • but the end is the same result:-

http://i.imgur.com/ZY2Cb1u.jpg

do u think its from debian itself ? is there a copy that i might downloaded not including these packages ? im using debian jessie 8.1 amd64 DVD

I think I know what the problem is. Your system package sources are pointed to the dvd and not the internet which is why you won’t find these packages.

You need to comment out the cdrom lines by putting a ‘#’ in front:

# deb cdrom

Also the changes you did with the editor to /etc/apt/sources.list don’t seem to have been saved. Which is is why it keeps looking at your dvd instead of connecting to the server. This time we want to make sure the changes are saved to the file before exiting.

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

Since you are using a graphical text editor don’t forget to save changes before closing.

After you exit the file open it again and copy what’s in it to a forum post here so I can make sure everything is right.

Now run apt-get update and it should work.

yeah , very grateful for remind me of this issue, i have totally forgot it.

btw i couldnt change the sources.list with this:-

i donno why (i know its the most common use) but rather i have used this method:-

and it worked after that. thnx for the help dude :-* (this symbol suppose to be a kiss on the cheek rather than this i dont mean it :stuck_out_tongue: )

Editing files as root is non-trivial. General issue on any Linux distribution, not Whonix specific. Documented here btw:

The other issue that was at work here was a non-functional /etc/apt/sources.list, an issue of Debian.

Hello
When I try to install kvm, teminal shows unable to locate these packages. I read this topic E: unable to locate package libvirt-bin & vir-manager but for now without results
These are the lines in my sources.list

deb cdrom: [Debian GNU/Linux 8 Jessie - Official Snapshot amd64 LIVE/INSTALL Binary 20160124-16:11]/ jessie main
deb cdrom: [Debian GNU/Linux 8 Jessie - Official Snapshot amd64 LIVE/INSTALL Binary 20160124-16:11]/ jessie main
deb Index of /debian jessie main contrib non—free
deb http://security.debian.org/ jessie/updates main contrib non—free
deb-src http://security.debian.org/ jessie/updates main contrib non—free
deb Index of /debian jessie-updates main contrib non—free

There are also # before deb cdrom lines and one before with no line
(I can’ write it near because it enlarge the text)

Thank you

Good day,

just moved this post in here, having two similar topics with the same name isn’t all to reasonable.

Have a nice day,

Ego

  • if u r on debian jessie , do these steps:-

su nano /etc/apt/sources.list

  • now delete all what u c inside the file and copy/paste:-

deb http://httpredir.debian.org/debian jessie main deb-src http://httpredir.debian.org/debian jessie main

deb http://httpredir.debian.org/debian jessie-updates main deb-src http://httpredir.debian.org/debian jessie-updates main

deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main

  • then Ctrl + x and press y and Enter

  • and update ur sources

apt-get update

  • then install the KVM as mentioned in the wiki.

Hi,

I also having problem on getting package for qemu-kvm and libvirt-bin through apt-get. My sources-list is pointing to the 3 ISOs files as shown below:
----------------- sources-list file ------------------------------------------------------------------
#deb cdrom:[Debian GNU/Linux 8.7.1 Jessie - Official amd64 DVD Binary-1 20170116-11:01]/ jessie contrib main
deb file:///media/dvd1/ jessie main
deb file:///media/dvd2/ jessie main
deb file:///media/dvd3/ jessie main

Please help…

HI. That’s becuase your apt spurcs list is pointing to dvd media for apackages somehow. Please edit the sources list with this command to look roughly like below:

sudo nano /etc/apt/sources.list


comment out dvd lines by placing a “#” at the beginning of each line

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free

This seems wrong.

1 Like

Thanks. The formatting of the text I copied was messed up.

But I don’t want to have internet connection. Is it possible to use ISO file as local repositor?

I don’t think so. As of Stretch Debian will stop making disc collections of their entire repo collection. You could however simulate a KVM install on another machine connected to the internet but opt to download the packages instead and transfer them over by USB to your air-gapped machine.

There is apt-offline but I don’t know how hard it is to use it. And I don’t see why you would want to use it.