Jeff Abrahamson on Tue, 21 Aug 2001 19:50:09 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] apt-get and old sources


On Sun, Aug 19, 2001 at 11:04:15AM -0400, Bill Jonas wrote:
> On Sun, Aug 19, 2001 at 09:34:44AM +0200, Jeff Abrahamson wrote:
> > Any suggestions?
> 
> Try the following command sequence:
> 
> # apt-get install grep-dctrl
> # grep-available -i ximian |grep ^Package |awk '{print $2}' |xargs dpkg \
>   --purge --force-depends
> # apt-cache search ximian |awk '{print $2}' |xargs dpkg --purge \
>   --force-depends
> # apt-get -f install
> 
> This sequence:
> * Installs the grep-dctrl package (see the description of it from
>   apt-cache show to learn more about it).
> * Searches the package list files for anything that contains the
>   case-insensitive string "ximian", chooses the lines with the package
>   names, prints the package names, and then sends them to dpkg to remove
>   with extreme prejudice (all dependency errors will be turned into
>   warnings).
> * Does the same thing again, but uses apt-cache search.  (For
>   completeness.)
> * Fixes any broken dependencies you have.

Thanks, Bill.

So here's what's odd:

diderot:/home2/jeff# grep-available -i ximian
diderot:/home2/jeff# apt-cache search ximian
diderot:/home2/jeff# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
diderot:/home2/jeff# apt-get install mozilla
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

Sorry, but the following packages have unmet dependencies:
  mozilla: Depends: libnspr4 (= M18-3) but 2:0.9.1-ximian.4 is to be installed
E: Sorry, broken packages
diderot:/home2/jeff# 

The install of mozilla would be cool but isn't critical for me. But
I'm bothered by the broken package that doesn't seem to be there.


I'm not quite sure how to reconcile the above with the following:

diderot:/home2/jeff# dpkg -l | grep ximian|wc -l
     64
diderot:/home2/jeff# 

All those packages are either ii (install/installed) or rc
(remove/config files).

Fwiw,
diderot:/home2/jeff# dpkg -l|grep 0.9.1-ximian.4  
ii  libnspr-dev    0.9.1-ximian.4 Netscape Portable Runtime library - developm
ii  libnspr4       0.9.1-ximian.4 Netscape Portable Runtime Library
rc  mozilla-browse 0.9.1-ximian.4 Mozilla Web Browser - core and browser
rc  mozilla-chatzi 0.9.1-ximian.4 Mozilla Web Browser - irc client
rc  mozilla-mailne 0.9.1-ximian.4 Mozilla Web Browser -  mail and news support
rc  mozilla-xmlter 0.9.1-ximian.4 Mozilla Web Browse - XML enabled
diderot:/home2/jeff# 

This is getting even odder. So I do

diderot:/home2/jeff# apt-get remove libnspr4
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  libnspr-dev libnspr4 
0 packages upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 1425kB will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 42386 files and directories currently installed.)
Removing libnspr-dev ...
Removing libnspr4 ...
diderot:/home2/jeff# apt-get install mozilla
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  libnspr4 
The following NEW packages will be installed:
  libnspr4 mozilla 
0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 9068kB of archives. After unpacking 26.4MB will be used.
Do you want to continue? [Y/n] 
...

I guess I kind of got what I want, but I'd love some help in
understanding what happened. I thought dpkg -l should be a subset of
apt-cache seach, for example.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>

    The other day upon the stair
    I met a man who wasn't there.
    He wasn't there again today
    I wish, I wish he'd go away.

      - Hughes Mearns


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug