Re: [SLUG] broken packages?

From: Eben King (eben01@verizon.net)
Date: Sun Mar 16 2008 - 02:27:59 EST


On Sun, 16 Mar 2008, Eben King wrote:

> On Sun, 16 Mar 2008, Paul M Foster wrote:
>
>> On Sun, Mar 16, 2008 at 12:11:54AM -0400, Eben King wrote:
>>
>>> So I tried to upgrade mplayer. apt wanted to do what seems to be its
>>> usual
>>> thing now, which is to uninstall package A and then install package A++.
>>> (There were 63 things to do.) This time, it hung partway through
>>> (couldn't
>>> remove /usr/X11/bin which is used by opera). So some things (for example
>>> xterm) got uninstalled and never reinstalled. What I think is the
>>> solution
>>> is to go to runlevel 1 and use aptitude (or apt-get) to fix the problem.
>>> I
>>> don't know the syntax for either one of those. Help?
>>
>> To move to single user mode,
>>
>> telinit 1
>
> Right, knew that.
>
>> Then you can run aptitude as usual.
>
> That's what I don't know.

OK, I figured out some. '+' toggles "to install" mark, '-' toggles "to
remove" mark. Installl might have deps, 'e'xamine them or '!'approve them.
'g' shows what's to be done, 'g' again does it.

> I restored /usr from (yesterday's) backup. Didn't fix X -- I still can't run
> startx. Maybe it depends on something in / .

In aptitude, I told it to clear the cache. I'm pretty sure one of the
packages there was corrupt. There are five packages with unsatisfied deps
-- imake, libgl1-mesa, makedepend, x-window-system-core, xmkmf -- so it
wants to delete them.

After installation fails, I can scroll back and the first error is:

Replacing files in old package xinit ...
dpkg: error processing /var/cache/apt/archives/x11-common_1%3a7.1.1ubuntu6.2_i386.deb (--unpack):
tring to overwrite `/usr/X11R6/bin`, which is also in package opera
Errors were encountered while processing:
/var/cache/apt/archives/x11-common_1%3a7.1.1ubuntu6.2_i386.deb
E: sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:

and it continues with a sordid tale. Any ideas? I can replace the whole
disk with yesterday's backup. I have half a mind to do that, since I've
already tarred up stuff in ~ that was modified in the last day.

-- 
-eben   QebWenE01R@vTerYizUonI.nOetP   royalty.mine.nu:81

And we never failed to fail / It was the easiest thing to do -- CSN

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:25:42 EDT