Closed TinaRussell closed 7 months ago
So, I figured out how to finish upgrading the other packages (the ones that hadn’t been fully upgraded because of how the Keybase package problem interrupted the upgrade process in the middle). First, I had to use sudo dpkg -C
to list all the packages that were left in limbo. It listed packages in three categories: the packages that had been unpacked, but not configured; the one package (the Keybase package) that was listed as partially configured, in that the configuration process had been interrupted in the middle; and the packages that had been unpacked and configured but had triggers that hadn’t been run. What I had to do is use sudo dpkg --configure
(followed by the name of the package) for each package in that first category, which was a huge pain, but thankfully it worked. (Sometimes I’d run into errors where dpkg couldn’t configure a package until another package in the list had been configured, so I’d have to mind the order in which I instructed dpkg to configure these packages. Now, I did discover that the order didn’t matter if you listed all the required packages in the same command, so I could’ve probably just used sudo dpkg --configure
followed by the names of every package in that first category, but I guess I preferred doing it a little more peacemeal.) Thankfully, the first time I used sudo dpkg --configure
to have it configure a package, it automatically ran the triggers for that third category of packages (unpacked, configured, but with triggers that hadn’t been run), so that wasn’t a problem.
Anyway, now that I’ve finished doing this, my system isn’t in quite as much of a scary limbo state, but Keybase still is. (For that matter, it’d be hard for me to install anything at this point, including things like security updates, until the matter of the Keybase upgrade is fixed.) I’ve tried it again and sudo dpkg --configure -a
(or, for that matter, sudo dpkg --configure keybase
) still hangs with six “Unable to connect to X server” errors. If anybody could help me figure out what’s going on, I’d be very grateful. Thank you!
Hmmm, if I try running keybase ctl stop
, to make sure Keybase is not currently running, and then use sudo dpkg --configure -a
, something else happens:
Setting up keybase (6.2.8-20240306193933.e38523abbe) ...
mkdir: cannot stat ‘/keybase’: Transport endpoint is not connected
chown: cannot access '/keybase': Transport endpoint is not connected
chmod: cannot access '/keybase': Transport endpoint is not connected
dpkg: error processing package keybase (--configure):
installed keybase package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
keybase
…and then it returns me to the command prompt, instead of hanging. So that’s… progress, I guess? But, it still doesn’t work. Hmmm…
Okay, I think I finally got this working. Per the suggestion here, I tried using sudo fusermount -u /keybase
and then sudo dpkg --configure -a
, and the installation finished without any error messages. I think this is finally closed. (Whew!)
I’m using Ubuntu MATE 24.04, and recently I tried to upgrade all my packages using
sudo apt upgrade
(well, I usedsudo sh -c "apt update && apt upgrade -y && apt autoremove -y"
, but you get the idea). In the middle of theapt upgrade
process, it was upgrading the Keybase package, and my computer ran out of space (not sure if this is relevant to the problem, but I’m including it in the interest of thoroughness). Bad, I know. The terminal showed two errors: “Unable to connect to X server”, and something to do with there being no space left on my device, and it showed these two errors over and over (alternating) until the process just hung. So, I cleared up some space, assuming that would solve the problem, but the process still wasn’t doing anything (just to be sure, I left it “going” all night, and by the morning there was no progress and no new error messages, it was just hung like before).So, after that, I terminated all the apt-related processes (dangerous, I know) and decided to try finishing the upgrade, using
sudo dpkg --configure -a
. It immediately started “Setting up keybase (6.2.8-20240306193933.e38523abbe) ...” and then, after a bit, it spit out those error messages—not the ones about no disk space, since I’d cleared up some space, but the ones that said “Unable to connect to X server”. And then, it hung, just like before. I’ve tried it several times since (each time first having to terminate whichever process has the dpkg lock; again, dangerous, I know), and I get the same results every time: setting up Keybase, “Unable to connect to X server,” then nothing. The upgrade just won’t finish installing.For background, I have
keybase.list
in my/etc/apt/sources.list.d/
, and the entry readsdeb http://prerelease.keybase.io/deb stable main
. I’m using Ubuntu MATE 22.04 on a Compaq Presario CQ60. And, in case it helps, I recorded what happens if I entersudo dpkg --debug=77777 --configure -a
(the maximum debug level) when trying to finish the upgrade again, and first it says,D000001: ensure_diversions: new, (re)loading
, then a bunch of stuff related to other packages on my system, and then:…and then it just hangs, as always. Anyway, until I have this problem fixed, my whole apt packaging system is sort of in limbo. I mean, it can’t finish the upgrade process, and I have no idea what happens when you have a bunch of updates (including some kernel updates) and leave them half-configured, or in whatever state they’re in right now, for an extended amount of time… I’m scared! Please help, thanks!