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

Re: removing a package from apt-get?



On Tue, 01 Jul 2003 02:40:15 +0200, j2 wrote:

> Ok, i tried to install a .deb with dpkg -i filename.deb and ran into a
> problem that i was lacking flex. So i did "apt-get install flex" and
> then i get
> 
> cookiemonster:/root/Download/SMS/gnokii-0.5.2# apt-get install flex
> Reading Package Lists... Done
> Building Dependency Tree... Done
> You might want to run `apt-get -f install' to correct these: Sorry, but
> the following packages have unmet dependencies:
>   gnokii-smsd: Depends: libc6 (>= 2.3.1-1) but 2.2.5-11.5 is to be
>   installed
>                Depends: gnokii (= 0.5.0-1) but 0.3.5-1 is to be
>                installed
>   gnokii-smsd-mysql: Depends: libc6 (>= 2.3.1-1) but 2.2.5-11.5 is to be
>   installed
> E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
> specify a solution). cookiemonster:/root/Download/SMS/gnokii-0.5.2#
> 
> Now, how can i tell apt-get that i no longer wish to install those
> packages ( i will build them from source instead), but how to remove the
> gnokii-components from the list of files to be installed?


I'm assuming that the packages that you tried to install with dpkg are the
gnokii packages. It appears that they were compiled for unstable or
testing, and you are using stable (I can tell because of the libc6
dependancy). The package, however, was actually installed by dpkg and now
apt is detecting the dependancy error.

You can remove the offending packages with `apt-get remove` or `dpkg -r`.

If you were running unstable (and apt knew about packages that could
satisfy the dependancies) then the proper solution would be to let apt-get
figure out what needed to be done with the command `apt-get -f install'
that apt has suggested. You don't need to put a package name at the end of
that command line.

-- 
I usually have a GPG digital signature included as an attachment.
If you don't know what it is, either ignore it or visit www.gnupg.org
My PGP key was last signed 6/10/2003 please download my key again if
it is more recent than your copy. If you use GPG, *please* talk to
me to sign it. The key is keyID E2B2CAD1 on pgp.mit.edu



Reply to: