2

I am running a live debian as a guest OS in VMM.

$ sudo apt install spice-vdagent
...
E: unable to locate package spice-vdagent

Do I need to add some repository first?

The repository configuration contains:

user@debian:~$ cat /etc/apt/sources.list.d/base.list
deb http://deb.debian.org/debian/ stretch main
#deb-src http://deb.debian.org/debian/ stretch main
GAD3R
  • 63,407
  • 31
  • 131
  • 192
Tim
  • 98,580
  • 191
  • 570
  • 977

1 Answers1

2

In the live images, there are no repository indexes in the base image, so you need to update first:

sudo apt update
sudo apt install spice-vdagent
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
  • Thanks. Could you explain somehow what apt needs to find a package? How are repo indexes used, and when are they created? – Tim Mar 25 '19 at 16:02
  • See [the relevant chapter in the Debian reference manual](https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_debian_package_management_internals). – Stephen Kitt Mar 25 '19 at 17:06