tl;dr : not a pleasant experience indeed.
This is what actually happened.
I opened a terminal (Ctrl+Alt+F1), logged in as root and stopped lightdm to start X manually. It didn't work but it complained that it couldn't write something related to the keyboard in /tmp and sure the permissions in /tmp looked wrong to me, they were like 755; I honestly don't remember what they were before but my 30+ years with Unix told me that /tmp must be set to 1777 and so I did.
That worked, as I'm now writing this under 14.3p2.
I don't actually know if this is pkgbase related but this is the first time I had any problems in a FreeBSD update and honestly I don't see what else can change the /tmp permissions other than an OS upgrade.
I'll reboot my laptop again and report back.
Edit: all good.
This is what actually happened.
- First I had to upgrade pkg to 2.2.1 to 2.2.2. So far so good.
- Then I got a lot of packages to upgrade, all the base packages plus KDE Plasma going from 6.4.3 to 6.4.4, plus libreoffice, librewolf and so on. Well, lots of stuff but that's what BEs are for, so I interrupted the download and created a new BE.
- Then I restarted the upgrade. There were a lot of scary messages like
/libexec/ld-elf.so.1 not found
but all ended without any more errors. - As a further precaution, I started the upgrade process again and it found nothing more to do, so I rebooted my laptop.
I opened a terminal (Ctrl+Alt+F1), logged in as root and stopped lightdm to start X manually. It didn't work but it complained that it couldn't write something related to the keyboard in /tmp and sure the permissions in /tmp looked wrong to me, they were like 755; I honestly don't remember what they were before but my 30+ years with Unix told me that /tmp must be set to 1777 and so I did.
That worked, as I'm now writing this under 14.3p2.
I don't actually know if this is pkgbase related but this is the first time I had any problems in a FreeBSD update and honestly I don't see what else can change the /tmp permissions other than an OS upgrade.
I'll reboot my laptop again and report back.
Edit: all good.
Code:
[10:22][fmc000@tu45b-freebsd ~]$ ls -la /tmp
total 61
drwxrwxrwt 8 root wheel 10 Aug 9 10:22 .
drwxr-xr-x 24 root wheel 30 Aug 9 10:22 ..
drwxrwxrwt 2 root wheel 3 Aug 9 10:22 .ICE-unix
-r--r--r-- 1 root wheel 11 Aug 9 10:22 .X0-lock
drwxrwxrwt 2 root wheel 3 Aug 9 10:22 .X11-unix
drwxrwxrwt 2 root wheel 2 Aug 9 10:22 .XIM-unix
drwxrwxrwt 2 root wheel 2 Aug 9 10:22 .font-unix
srwxrwxrwx 1 fmc000 wheel 0 Aug 9 10:22 dbus-wlDXFTm1Ff
drwx------ 2 fmc000 wheel 2 Aug 9 10:22 plasma-csd-generator.IsVtaf
drwx------ 2 root wheel 2 Aug 9 10:22 simple-mtpfs-OQV8zP
[10:23][fmc000@tu45b-freebsd ~]$