-
I get an error when using apt-get
When ever trying to install a new application, it get the following error:
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
So, as it suggests, I run apt-get -f install...no good, I get this error:
dpkg: error processing /var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb (--unpack):
trying to overwrite `/usr/X11R6/include/X11/Xcursor/Xcursor.h', which is also in package xlibs-dev
Errors were encountered while processing:
/var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Any suggestions? I am new to debian, have been using linux off and on for about three years, still consider myself a beginner. I upgraded my machine to unstable after performing a knx-hdinstall using the directions on debian.org . Any help would be appreciated.-Ryan
-
Senior Member
registered user
welcome to the dark side of apt-get.
There isn't very much you can do. you may try to first remove xlibs-dev and try again. You see this error because the package maintainers(of both packages) both include the file in question which dpkg don't like(it wants to be sure that every file in the system belongs to only one package, based on my limited knowledge of it). May be there is a command line option that can tell dpkg to ignore this condition.
I would like to know the answer too.
-
Senior Member
registered user

Originally Posted by
garyng
welcome to the dark side of apt-get.
There isn't very much you can do. you may try to first remove xlibs-dev and try again. You see this error because the package maintainers(of both packages) both include the file in question which dpkg don't like(it wants to be sure that every file in the system belongs to only one package, based on my limited knowledge of it). May be there is a command line option that can tell dpkg to ignore this condition.
I would like to know the answer too.
"If you have nothing to loose"
do the following:
Code:
cd /var/cache/apt/archives/
dpkg --force-overwrite -i package_inquestion.deb
Then both packages will be installed, but of course the file will be overwritten.
There are other solutions possible with dpkg-divert, but those should be used more by package-developers like me
.
cu
Fabian
-
Fixed. I slept for the night, then used netselect to get a new mirror, ran apt-get update, and then ran apt-get -f install . I don't know how it worked, or why, but it did and I now have apt-get back and working again. I guess that's why they call it unstable.-Ryan
-
Senior Member
registered user
unstable indeed 
but most of the time the problems get fixed quick. So I can handle it... just dont upgrade your system if you have to finish an important document for tomorow
Similar Threads
-
By IdroJ in forum General Support
Replies: 2
Last Post: 02-04-2004, 11:43 PM
-
By Cuddles in forum Hdd Install / Debian / Apt
Replies: 17
Last Post: 01-20-2004, 04:30 PM
-
By luro95 in forum General Support
Replies: 0
Last Post: 10-17-2003, 03:55 AM
-
By labrador in forum Customising & Remastering
Replies: 0
Last Post: 07-18-2003, 01:54 AM
-
By Mad_Max_FX in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 06-22-2003, 03:29 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99

ASRock b560 ATX Motherboard + Intel Core i5-11600K CPU Combo Gaming + 32 GB DDR4
$300.00

AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad
$355.99

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Core I7-7700 SR338 3.60 Ghz Processor
$39.99

Intel Core i7-7700K SR33A 4.20GHz 4-Core LGA1151 CPU Processor
$62.95

LAST BATCH *Brand New-Sealed* AMD Ryzen 9 9950X3D2 Dual Ed. 4.3GHz 16Core AM5
$768.00

Intel 6th Gen Core i7-6700K 4.0GHz (Turbo 4.2GHz) 4-Core LGA1151 CPU SR2L0
$38.00