Input/Output Error; dpkg sub-process /usr/bin/dpkg returned and error code (2)
Good day, all. I never have simple problems. If this ends up being simple, I thank you ahead of time.
dpkg doesn't work on my debian box. It is oldstable/stable/testing/unstable. I go to apt-get anything and I get an error. Here's an example using "joe" as my apt-get install candidate. Quote:
~Dave |
Code:
The following NEW packages will be installed From the dbconf man page: Quote:
|
Yes. Debconf is installed.
|
Just for kicks, I went out to apt-get install debconf. Here's what happened:
Quote:
|
Fixed it!
dpkg --clean-avail apt-get update And, we're running again. |
well done.
yeah - debconf isn't required for dpkg to work. Also, the error messages are not always a good indicator of what is wrong. Even so - first port of call is to check that the error message is off first then look for other issues. In this case, first stop is to check that debconf exists. Since it does, then dpkg is getting confused about what packages are around and what arn't. Especially likely considering you description of the install in post #1. Cleaning up was the next move - and you got there yourself. Installing dpkg from source was not indicated since, when something like that gets coruupted it usually fails much more nastily than that. You did well with a nice progression in reasoning. Good solve. |
Thanks NosLycn... That was very helpful... I ran into the same error today...
Just one correction ..guess it was a typo its dbkg --clear-avail (not clean) |
Quote:
So, the line should read Code:
dpkg --clear-avail |
All times are GMT -5. The time now is 01:02 AM. |