nx9010@nx9010-HP-nx9010-DJ316A:~$ sudo apt policy perl-base
[sudo] password for nx9010:
perl-base:
Installed: 5.22.1-9
Candidate: 5.22.1-9
Version table:
*** 5.22.1-9 500
500 http://nl.archive.ubuntu.com/ubuntu xenial/main i386 Packages
100 /var/lib/dpkg/status
nx9010@nx9010-HP-nx9010-DJ316A:~$ ^C
nx9010@nx9010-HP-nx9010-DJ316A:~$ sudo wget http://nl.archive.ubuntu.com/ubuntu/pool/main/p/perl/perl-base_5.22.1-9_i386.deb
--2017-02-13 14:32:57-- http://nl.archive.ubuntu.com/ubuntu/pool/main/p/perl/perl-base_5.22.1-9_i386.deb
Resolving nl.archive.ubuntu.com (nl.archive.ubuntu.com)... 213.136.12.213, 2001:7b8:3:37::21:3
Connecting to nl.archive.ubuntu.com (nl.archive.ubuntu.com)|213.136.12.213|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1367582 (1,3M) [application/x-debian-package]
Saving to: ‘perl-base_5.22.1-9_i386.deb’
perl-base_5.22.1-9_ 100%[===================>] 1,30M --.-KB/s in 0,1s
2017-02-13 14:32:57 (10,5 MB/s) - ‘perl-base_5.22.1-9_i386.deb’ saved [1367582/1367582]
nx9010@nx9010-HP-nx9010-DJ316A:~$ sudo dpkg -i --force-all perl-base_5.22.1-9_i386.deb
(Reading database ... 243186 files and directories currently installed.)
Preparing to unpack perl-base_5.22.1-9_i386.deb ...
Unpacking perl-base (5.22.1-9) over (5.22.1-9) ...
Setting up perl-base (5.22.1-9) ...
Processing triggers for man-db (2.7.5-1) ...
nx9010@nx9010-HP-nx9010-DJ316A:~$ sudo apy install -f
sudo: apy: command not found
nx9010@nx9010-HP-nx9010-DJ316A:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
nx9010@nx9010-HP-nx9010-DJ316A:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-4.4.0-21 linux-headers-4.4.0-21-generic
linux-image-4.4.0-21-generic linux-image-extra-4.4.0-21-generic
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 237 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 243185 files and directories currently installed.)
Removing linux-headers-4.4.0-21-generic (4.4.0-21.37) ...
Removing linux-headers-4.4.0-21 (4.4.0-21.37) ...
Removing linux-image-extra-4.4.0-21-generic (4.4.0-21.37) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
Error! Your kernel headers for kernel 4.4.0-21-generic cannot be found.
Please install the linux-headers-4.4.0-21-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-21-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-62-generic
Found initrd image: /boot/initrd.img-4.4.0-62-generic
Found linux image: /boot/vmlinuz-4.4.0-57-generic
Found initrd image: /boot/initrd.img-4.4.0-57-generic
Found linux image: /boot/vmlinuz-4.4.0-21-generic
Found initrd image: /boot/initrd.img-4.4.0-21-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Removing linux-image-4.4.0-21-generic (4.4.0-21.37) ...
Examining /etc/kernel/prerm.d.
run-parts: executing /etc/kernel/prerm.d/dkms 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
update-initramfs: Deleting /boot/initrd.img-4.4.0-21-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-21-generic /boot/vmlinuz-4.4.0-21-generic
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-62-generic
Found initrd image: /boot/initrd.img-4.4.0-62-generic
Found linux image: /boot/vmlinuz-4.4.0-57-generic
Found initrd image: /boot/initrd.img-4.4.0-57-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
nx9010@nx9010-HP-nx9010-DJ316A:~$