jthistl3
January 2nd, 2019, 08:11 PM
Ubuntu 18.04 LTS, 64-bit.
I booted into Ubuntu just now, and suddenly, for seemingly no reason, it hung on the Plymouth boot screen, on 'Hold until boot process finishes up'. The boot process never finished up.
So, I looked around for solutions, and, after booting into root bash in recovery mode, I tried one. The solution involved reinstalling/removing `plymouth`, so I tried using apt to do that. But I got a locale error, which I fixed by regenerating locale.
Then, when using apt to attempt to remove plymouth, I got this error:
dpkg: error: fgets gave an empty string from 'var/lib/dpkg/arch'
Turns out dpkg is a bit broken.
Looking through `/var/lib/dpkg/`, most files seem intact and uncorrupted.
`available`, `diversions`, `statoverride` and `status` are all readable, largish files. The `arch` file however, is corrupt (only 11 bytes, and `cat` produces `MmSt`.)
My question is, how can I regenerate this `arch` file and fix my computer?
Even it involves reinstalling dpkg...
I'm extremely grateful for _any_ help (please)!
I booted into Ubuntu just now, and suddenly, for seemingly no reason, it hung on the Plymouth boot screen, on 'Hold until boot process finishes up'. The boot process never finished up.
So, I looked around for solutions, and, after booting into root bash in recovery mode, I tried one. The solution involved reinstalling/removing `plymouth`, so I tried using apt to do that. But I got a locale error, which I fixed by regenerating locale.
Then, when using apt to attempt to remove plymouth, I got this error:
dpkg: error: fgets gave an empty string from 'var/lib/dpkg/arch'
Turns out dpkg is a bit broken.
Looking through `/var/lib/dpkg/`, most files seem intact and uncorrupted.
`available`, `diversions`, `statoverride` and `status` are all readable, largish files. The `arch` file however, is corrupt (only 11 bytes, and `cat` produces `MmSt`.)
My question is, how can I regenerate this `arch` file and fix my computer?
Even it involves reinstalling dpkg...
I'm extremely grateful for _any_ help (please)!