Comment 14 for bug 1656484

Revision history for this message
Scott Moser (smoser) wrote :

Below I launch a
 a.) trusty lxd container,
 b.) enable proposed
 c.) install pollinate from proposed
 d.) attempt to remove the package that provides /usr/bin/xxd

The output of 'd' shows that removal of vim-common would also
remove pollinate, showing that the dependency is correct.

$ name="t-1656484"
$ lxc launch ubuntu-daily:trusty t-1656484
Creating t-1656484
Starting t-1656484

$ sleep 10 # let it boot
$ mirror=http://archive.ubuntu.com/ubuntu
$ plist="/etc/apt/sources.list.d/proposed.list"
$ echo deb $mirror trusty-proposed main | lxc exec $name tee $plist
$ lxc exec "$name" sh -c "
   echo deb $mirror \$(lsb_release -sc) main > $plist"
$ lxc exec "$name" -- apt-get update -q
$ lxc exec "$name" -- apt-get install -q pollinate
...
Unpacking pollinate (4.23-0ubuntu1~14.04.2) over (4.23-0ubuntu1~14.04) ...
...
Setting up pollinate (4.23-0ubuntu1~14.04.2) ...

$ lxc exec "$name" -- which xxd
/usr/bin/xxd
$ lxc exec "$name" -- dpkg -S /usr/bin/xxd
vim-common: /usr/bin/xxd

$ lxc exec "$name" -- apt-get --dry-run remove vim-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  pollinate ubuntu-minimal vim vim-common vim-tiny
0 upgraded, 0 newly installed, 5 to remove and 2 not upgraded.
Remv pollinate [4.23-0ubuntu1~14.04.2]
Remv ubuntu-minimal [1.325]
Remv vim [2:7.4.052-1ubuntu3.1]
Remv vim-tiny [2:7.4.052-1ubuntu3.1]
Remv vim-common [2:7.4.052-1ubuntu3.1]