Public bug reported:

the lxd images currently have 'os-prober' and 'libfreetype6' installed inside 
them.
I suspect that this is a result of them having been built by building a cloud 
image (with a kernel and a grub) and then removing the kernel and grub.

Anyway, the end result is that there are packages that can be
autoremoved and that seems just like oversite.

$ 
url=http://cloud-images.ubuntu.com/daily/server/xenial/current/xenial-server-cloudimg-amd64-root.tar.xz
$ tball=${url##*/}
$ [ -f "$tball" ] || { wget "$url" -O "$tball.t && mv "$tball.t" "$tball" ; }

$ [ -d ex ] && sudo rm -Rf ex;
$ mkdir -p ex
$ sudo tar -C ex -Sxpf "$tball"
$ sudo chroot ex apt-get autoremove
$ sudo chroot ex apt-get autoremove --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libfreetype6 os-prober
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Remv libfreetype6 [2.5.2-4ubuntu2]
Remv os-prober [1.70ubuntu1]

I just found this when fiddling around with maas images that are
derivatives of cloud images.

** Affects: ubuntu
     Importance: Low
         Status: Confirmed


** Tags: cloud-images cloud-images-build

** Description changed:

  the lxd images currently have 'os-prober' and 'libfreetype6' installed inside 
them.
  I suspect that this is a result of them having been built by building a cloud 
image (with a kernel and a grub) and then removing the kernel and grub.
  
  Anyway, the end result is that there are packages that can be
  autoremoved and that seems just like oversite.
  
- $ 
url=http://cloud-images.ubuntu.com/daily/server/xenial/current/xenial-server-cloudimg-amd64-root.tar.xz
 
+ $ 
url=http://cloud-images.ubuntu.com/daily/server/xenial/current/xenial-server-cloudimg-amd64-root.tar.xz
  $ tball=${url##*/}
  $ [ -f "$tball" ] || { wget "$url" -O "$tball.t && mv "$tball.t" "$tball" ; }
  
  $ [ -d ex ] && sudo rm -Rf ex;
  $ mkdir -p ex
  $ sudo tar -C ex -Sxpf "$tball"
  $ sudo chroot ex apt-get autoremove
  $ sudo chroot ex apt-get autoremove --dry-run
  Reading package lists... Done
- Building dependency tree       
+ Building dependency tree
  Reading state information... Done
  The following packages will be REMOVED:
-   libfreetype6 os-prober
+   libfreetype6 os-prober
  0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
  Remv libfreetype6 [2.5.2-4ubuntu2]
  Remv os-prober [1.70ubuntu1]
+ 
+ I just found this when fiddling around with maas images that are
+ derivatives of cloud images.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1534764

Title:
  xenial lxd (-root.tar.gz/-root.tar.xz) have unnecessary packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1534764/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to