Only1KW
October 11th, 2016, 03:52 PM
Just now, I am trying to upgrade the packages on my 16.04 installation. When I run "apt upgrade", new kernel images are listed as being scheduled to be installed. If I run "apt dist-upgrade" I get the same output. If I run "apt-get upgrade", then the kernel images are held back. Is apt working as expected? I thought I was supposed to be using apt now instead of apt-get, but I also thought apt was supposed to run mostly the same as apt-get. If this is expected behavior, I plan to continue using apt-get.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
linux-headers-4.4.0-42 linux-headers-4.4.0-42-generic linux-image-4.4.0-42-generic linux-image-extra-4.4.0-42-generic
The following packages will be upgraded:
bcompare cmake cmake-data dkms git git-man google-chrome-stable gtk2-engines-murrine ifupdown init init-system-helpers initramfs-tools
initramfs-tools-bin initramfs-tools-core isc-dhcp-client isc-dhcp-common klibc-utils libklibc libnm0 libpython3.5 libpython3.5-minimal
libpython3.5-stdlib linux-firmware linux-generic linux-headers-generic linux-image-generic linux-libc-dev network-manager python3.5
python3.5-minimal qemu-block-extra qemu-utils snap-confine snapd ubuntu-core-launcher ubuntu-drivers-common xserver-common xserver-xorg-core
38 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 193 MB of archives.
After this operation, 297 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
linux-headers-4.4.0-42 linux-headers-4.4.0-42-generic linux-image-4.4.0-42-generic linux-image-extra-4.4.0-42-generic
The following packages will be upgraded:
bcompare cmake cmake-data dkms git git-man google-chrome-stable gtk2-engines-murrine ifupdown init init-system-helpers initramfs-tools
initramfs-tools-bin initramfs-tools-core isc-dhcp-client isc-dhcp-common klibc-utils libklibc libnm0 libpython3.5 libpython3.5-minimal
libpython3.5-stdlib linux-firmware linux-generic linux-headers-generic linux-image-generic linux-libc-dev network-manager python3.5
python3.5-minimal qemu-block-extra qemu-utils snap-confine snapd ubuntu-core-launcher ubuntu-drivers-common xserver-common xserver-xorg-core
38 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 193 MB of archives.
After this operation, 297 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
$ uname -a
Linux robo 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
bcompare cmake cmake-data dkms git git-man google-chrome-stable gtk2-engines-murrine ifupdown init init-system-helpers initramfs-tools
initramfs-tools-bin initramfs-tools-core isc-dhcp-client isc-dhcp-common klibc-utils libklibc libnm0 libpython3.5 libpython3.5-minimal
libpython3.5-stdlib linux-firmware linux-libc-dev network-manager python3.5 python3.5-minimal qemu-block-extra qemu-utils snap-confine snapd
ubuntu-core-launcher ubuntu-drivers-common xserver-common xserver-xorg-core
35 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 125 MB of archives.
After this operation, 1,284 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
linux-headers-4.4.0-42 linux-headers-4.4.0-42-generic linux-image-4.4.0-42-generic linux-image-extra-4.4.0-42-generic
The following packages will be upgraded:
bcompare cmake cmake-data dkms git git-man google-chrome-stable gtk2-engines-murrine ifupdown init init-system-helpers initramfs-tools
initramfs-tools-bin initramfs-tools-core isc-dhcp-client isc-dhcp-common klibc-utils libklibc libnm0 libpython3.5 libpython3.5-minimal
libpython3.5-stdlib linux-firmware linux-generic linux-headers-generic linux-image-generic linux-libc-dev network-manager python3.5
python3.5-minimal qemu-block-extra qemu-utils snap-confine snapd ubuntu-core-launcher ubuntu-drivers-common xserver-common xserver-xorg-core
38 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 193 MB of archives.
After this operation, 297 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
linux-headers-4.4.0-42 linux-headers-4.4.0-42-generic linux-image-4.4.0-42-generic linux-image-extra-4.4.0-42-generic
The following packages will be upgraded:
bcompare cmake cmake-data dkms git git-man google-chrome-stable gtk2-engines-murrine ifupdown init init-system-helpers initramfs-tools
initramfs-tools-bin initramfs-tools-core isc-dhcp-client isc-dhcp-common klibc-utils libklibc libnm0 libpython3.5 libpython3.5-minimal
libpython3.5-stdlib linux-firmware linux-generic linux-headers-generic linux-image-generic linux-libc-dev network-manager python3.5
python3.5-minimal qemu-block-extra qemu-utils snap-confine snapd ubuntu-core-launcher ubuntu-drivers-common xserver-common xserver-xorg-core
38 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 193 MB of archives.
After this operation, 297 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
$ uname -a
Linux robo 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-34 linux-headers-4.4.0-34-generic linux-image-4.4.0-34-generic linux-image-extra-4.4.0-34-generic
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
bcompare cmake cmake-data dkms git git-man google-chrome-stable gtk2-engines-murrine ifupdown init init-system-helpers initramfs-tools
initramfs-tools-bin initramfs-tools-core isc-dhcp-client isc-dhcp-common klibc-utils libklibc libnm0 libpython3.5 libpython3.5-minimal
libpython3.5-stdlib linux-firmware linux-libc-dev network-manager python3.5 python3.5-minimal qemu-block-extra qemu-utils snap-confine snapd
ubuntu-core-launcher ubuntu-drivers-common xserver-common xserver-xorg-core
35 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Need to get 125 MB of archives.
After this operation, 1,284 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.