Right, today has not been a good day.
This morning, a seemingly innocent apt-get dist-upgrade has become a catastrophe. The more I tried to fix it, the worse things got.
Among the packages upgraded was
linux-kernel-headers, this is the problem package. After upgrading a few packages it got to linux-kernel-headers. I cannot remember the exact error for linux-kernel-headers (so long ago...) but the remaining packages failed and it ended.
Code:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'd seen this error before, didn't worry me too much. So I installed the other half-upgraded packages and nothing went wrong. I then tried to install linux-kernel-headers again using apt (redownloaded the package in case it was corrupted) and got a similar error.
In retrospect perhaps this is when I should have come here or elsewhere on the net for a solution...but no...
I decided to play with dpkg itself. dpkg reported that linux-kernel-headers was in a poor state and should be reinstalled which I tried... dpkg then segfaults. From this point on every command I type produces:
Code:
bash: command: Input/output error
even reboot and halt. eep...
I restart the computer (using the button, something I haven't had to do in years)
To my surprise everything seems to be working ok ... until I try to use apt-get or dpkg at which point I get the Input/output error again and have to reset. So I start browsing the dpkg man-page for a solution no luck. I try reinstalling again this time piping it through less:
Cannot remove file /usr/include/linux/version.h.dpkg.tmp : Unknown Error 990(or something similar, again my memory is hazy, I was so far past the point of no return...)
I took it upon myself to see what was going on
Code:
root:/# cd /usr/include
root:/usr/include# cd linux
bash: cd: linux: Unknown Error 990
That was an hour ago and I haven't had any luck since. I don't know whether this caused the problem with dpkg or I caused this problem by messing with dpkg.
Anyone got any ideas?
Edit: Just thought I'd say that everything important is backed up so any potentially fatal suggestions are welcome too. Cheers