HP EliteBook Folio 9470m - Debian - 2018 archive

back to main Debian page for this machine.

2018 archive.

2018-12-20: sdb4 - apt - upgrade

tingo@kg-elitebook:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libevent-2.0-5
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  firefox-esr ghostscript libbasicusageenvironment1 libgroupsock8 libgs9 libgs9-common liblivemedia57 libperl5.24
  libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libsmbclient libssl1.0.2 libssl1.1 libtiff5
  libusageenvironment3 libwbclient0 openssl perl perl-base perl-modules-5.24 policykit-1 samba-libs
23 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.3 MB of archives.
After this operation, 244 kB of additional disk space will be used.
[..]
Removed /run/systemd/system/polkit.service.
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok.

2018-11-28: sdb4 - apt - install acpi

tingo@kg-elitebook:~$ sudo apt install acpi
[..]
Setting up acpi (1.7-1+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...

ok.

2018-11-26: sdb4 - apt - install screen

tingo@kg-elitebook:~$ sudo apt install screen
[..]
Setting up screen (4.5.0-6) ...
Processing triggers for systemd (232-25+deb9u6) ...

ok.

2018-11-20: sdb4 - create a bsdusers group, and add my user to it

tingo@kg-elitebook:~$ sudo groupadd bsdusers
tingo@kg-elitebook:~$ grep bsdusers /etc/group
bsdusers:x:1001:

current memberships

tingo@kg-elitebook:~$ id tingo
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),114(bluetooth),115(lpadmin),119(scanner)

add to more groups

tingo@kg-elitebook:~$ sudo usermod -a -G bsdusers,dialout tingo

verify

tingo@kg-elitebook:~$ id tingo
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),114(bluetooth),115(lpadmin),119(scanner),1001(bsdusers)

ok.

2018-11-20: sdb4 - apt - I added contrib and non-free repositories to /etc/apt/sources.list and then installed firmware-iwlwifi.

2018-11-20: sdb4 - Debian 9.6 installed

tingo@kg-elitebook:~$ cat /etc/debian_version
9.6
tingo@kg-elitebook:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 9.6 (stretch)
Release:    9.6
Codename:    stretch

ok

2018-11-20: I downloaded Debian 9.6 (xfce) and put on a usb stick, then I booted the machine from the usb stick (I had to do that from rEFInd) and started the installation. After the install finished, the machine booted to rEFInd - nice.

2018-11-19: sdb4 - ok, so backup of home directory and the reinstall Debian 9 it is. Tomorrow.

2018-11-19: sdb4 - Debian -- sid?

tingo@kg-elitebook:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux stable-updates (sid)
Release:    stable-updates
Codename:    sid
tingo@kg-elitebook:~$ cat /etc/debia
cat: /etc/debia: No such file or directory
tingo@kg-elitebook:~$ cat /etc/debian_version
buster/sid

hmm, this might have something to do with it

tingo@kg-elitebook:~$ more /etc/apt/sources.list.d/testing.list
deb http://httpredir.debian.org/debian/ testing main contrib non-free
deb-src http://httpredir.debian.org/debian/ testing main contrib non-free

remove that

tingo@kg-elitebook:~$ sudo rm /etc/apt/sources.list.d/testing.list

and create this

tingo@kg-elitebook:~$ 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

now, do the update /upgrade dance again

tingo@kg-elitebook:~$ sudo apt update
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://deb.debian.org/debian stretch InRelease
Get:3 http://deb.debian.org/debian stretch Release [118 kB]
Get:4 http://deb.debian.org/debian stretch Release.gpg [2,434 B]
Ign:5 http://ftp.no.debian.org/debian stretch InRelease        
Hit:6 http://ftp.no.debian.org/debian stretch-updates InRelease
Hit:7 http://ftp.no.debian.org/debian stretch Release
Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [7,089 kB]
Get:10 http://deb.debian.org/debian stretch/main Translation-en [5,388 kB]
Fetched 12.6 MB in 5s (2,392 kB/s)                                 
Reading package lists... Done
Building dependency tree      
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

ok, so that wasn't enough. Create

tingo@kg-elitebook:~$ cat /etc/apt/preferences
Package: *
Pin: release n=stretch
Pin-Priority: 1001
and then try update / upgrade - didn't work

change to

tingo@kg-elitebook:~$ cat /etc/apt/preferences
Package: *
Pin: release a=stable
Pin-Priority: 1001

and try update - didn't work. Ok remove

tingo@kg-elitebook:~$ sudo rm /etc/apt/preferences

and create this instead

tingo@kg-elitebook:~$ cat /etc/apt/preferences.d/stretch
Package: *
Pin: release a=stretch
Pin-Priority: 1001

now, what does apt update say?

2018-11-19: sdb4 - apt - upgrade to Debian 9 "stretch"

tingo@kg-elitebook:~$ sudo apt upgrade
[..]
994 upgraded, 238 newly installed, 0 to remove and 241 not upgraded.
Need to get 473 MB of archives.
After this operation, 703 MB of additional disk space will be used.
[..]
Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.38.0+dfsg-6) ...
Processing triggers for libvlc-bin:amd64 (3.0.4-3+b3) ...
You have new mail in /var/mail/tingo

and do

tingo@kg-elitebook:~$ sudo apt dist-upgrade
[..]
238 upgraded, 347 newly installed, 39 to remove and 1 not upgraded.
Need to get 526 MB of archives.
After this operation, 841 MB of additional disk space will be used.
[..]
update-initramfs: Generating /boot/initrd.img-4.18.0-2-amd64
You have new mail in /var/mail/tingo

and run autoremove

tingo@kg-elitebook:~$ sudo apt autoremove
[..]
0 upgraded, 0 newly installed, 373 to remove and 1 not upgraded.
After this operation, 571 MB disk space will be freed.
[..]
Removing linux-image-3.16.0-4-amd64 (3.16.43-2+deb8u5) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-3.16.0-4-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.18.0-2-amd64
Found initrd image: /boot/initrd.img-4.18.0-2-amd64
Found linux image: /boot/vmlinuz-3.16.0-7-amd64
Found initrd image: /boot/initrd.img-3.16.0-7-amd64
Found unknown Linux distribution on /dev/sdb2
Found Fedora 28 (Twenty Eight) on /dev/mapper/fedora_kg--elitebook-root
Adding boot menu entry for EFI firmware configuration
done
[..]
Processing triggers for fontconfig (2.13.1-2) ...

ok

2018-11-19: sdb4 - apt - update

tingo@kg-elitebook:~$ sudo apt update
[..]
Reading package lists... Done

ok. I also had to remove a couple of files

tingo@kg-elitebook:~$ sudo rm /etc/apt/preferences.d/pinning.pref
tingo@kg-elitebook:~$ sudo rm /etc/apt/apt.conf.d/80defaultrelease

does it work now? Yes - 'sudo apt list --upgradable' gives a very long list of packages.

2018-11-19: sdb4 - apt - change from jessie to stretch

tingo@kg-elitebook:~$ sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list

manually checked, looks good

2018-11-19: sdb4 - apt - prepare for upgrade to Debian 9.

tingo@kg-elitebook:~$ sudo apt update
[..]
tingo@kg-elitebook:~$ sudo apt upgrade
Reading package lists... Done
E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources

hmm, that's interesting.

tingo@kg-elitebook:~$ grep stable /etc/apt/*/*
/etc/apt/apt.conf.d/80defaultrelease:APT::Default-Release "stable";

ok, so change that to "jessie".

tingo@kg-elitebook:~$ cat /etc/apt/apt.conf.d/80defaultrelease
APT::Default-Release "jessie";

and now?

tingo@kg-elitebook:~$ sudo apt upgrade
[..]
265 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 383 MB of archives.
After this operation, 283 MB of additional disk space will be used.
[..]
Processing triggers for python-support (1.0.15) ...
Processing triggers for systemd (232-22) ...
You have new mail in /var/mail/tingo

and then

tingo@kg-elitebook:~$ sudo apt dist-upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  gstreamer1.0-libav libgconf2-4 libgnome2-0 libuuid-perl
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

hmm,

tingo@kg-elitebook:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  gstreamer1.0-libav libgconf2-4 libgnome2-0 libuuid-perl
Use 'apt-get autoremove' to remove them.
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ok, looks the same.

tingo@kg-elitebook:~$ sudo dpkg -C
tingo@kg-elitebook:~$ sudo apt-mark showhold

ok

2018-11-16: this machine still runs Debian 8:

tingo@kg-elitebook:~$ date;cat /etc/debian_version
Fri Nov 16 22:59:03 CET 2018
8.8

ouch.