-
apt-get problem "returned an error code (1)"
Hi everybody,
can anybody help me with the following problem: After installing Knoppix 3.3 on hd, I runned an apt-get dist-upgrate and it runned in problems. So I tried to resolve the problem with an apt-get -f install but it shows me the following message:
user@Linuxbox:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libxcursor-dev
The following NEW packages will be installed:
libxcursor-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
407 not fully installed or removed.
Need to get 0B/27.3kB of archives.
After unpacking 135kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 114499 files and directories currently installed.)
Unpacking libxcursor-dev (from .../libxcursor-dev_1.0.2-2_i386.deb) ...
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)
Does anybody know how to solve this problem?
-
Senior Member
registered user
Re: apt-get problem "returned an error code (1)"
![Quote](images/misc/quote_icon.png)
Originally Posted by
migross
Hi everybody,
can anybody help me with the following problem: After installing Knoppix 3.3 on hd, I runned an apt-get dist-upgrate and it runned in problems. So I tried to resolve the problem with an apt-get -f install but it shows me the following message:
user@Linuxbox:~# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
libxcursor-dev
The following NEW packages will be installed:
libxcursor-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
407 not fully installed or removed.
Need to get 0B/27.3kB of archives.
After unpacking 135kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 114499 files and directories currently installed.)
Unpacking libxcursor-dev (from .../libxcursor-dev_1.0.2-2_i386.deb) ...
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)
Does anybody know how to solve this problem?
Yes change to the archives directory use su to become root and force the overwrite of the package, from a console window:
Code:
cd /var/cache/apt/archives
su
password:******
dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb
-
Thanks Stefen - now it works fine, but I got a little bit confused with the messages. I did
dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb
it showed me the following message:
dpkg: dependency problems prevent configuration of libxcursor-dev:
libxcursor-dev depends on libxcursor1 (= 1.0.2-2); however:
Package libxcursor1 is not configured yet.
So I installed libcursor1
user@Linuxbox:/var/cache/apt/archives# apt-get install libxcursor1
Reading Package Lists... Done
Building Dependency Tree... Done
libxcursor1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
408 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
It sounds funny, but now everything works fine
-
Senior Member
registered user
The libcursor1 status was not configured because of the error installing the -dev file when you went to install it the package system seen that it was installed and set the status properly most likely it is all part of the same bug. I notice that you have a large number of packages not fully installed as well because of the error if you have not already done it you should upgrade again to finish the install of the programs.
-
Your are right - I got the problem after an apt-get dist-upgrate so it tried to upgrade all installed packeges. Anyhow it seems to be an small bug in the dev file. But now it´s working and I´m very impressed about my new Knoppix Installation. Thanks for your help.
Similar Threads
-
By daveclem in forum Hdd Install / Debian / Apt
Replies: 6
Last Post: 02-18-2005, 08:09 PM
-
By lothario in forum Hdd Install / Debian / Apt
Replies: 14
Last Post: 09-10-2004, 01:52 PM
-
By hardbop200 in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 09-10-2004, 12:49 AM
-
By phillfri in forum Hardware & Booting
Replies: 3
Last Post: 09-26-2003, 01:52 AM
-
By akira28 in forum Networking
Replies: 0
Last Post: 08-02-2003, 11:52 PM
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
![ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB picture](/store/img/g/m2IAAOSwmz5kyNFT/s-l225/ORICO-5-Bay-Raid-Enclosure-USB3-0-SATA-External-Ha.jpg)
ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB
$115.59
![Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller picture](/store/img/g/ph8AAOSwnHxmXzcB/s-l225/Dell-EMC-092GD6-Broadcom-9305-16i-LSI-Quad-Port-4-.jpg)
Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller
$84.99
![Oracle MegaRAID SAS9361-16i 16-Port 12Gb/s PCIe SAS RAID Controller P/N: 7332895 picture](/store/img/g/JmUAAOSwCxVmfwju/s-l225/Oracle-MegaRAID-SAS9361-16i-16-Port-12Gb-s-PCIe-SA.jpg)
Oracle MegaRAID SAS9361-16i 16-Port 12Gb/s PCIe SAS RAID Controller P/N: 7332895
$149.99
![ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT picture](/store/img/g/m2IAAOSwmz5kyNFT/s-l225/ORICO-5-Bay-Raid-USB3-0-to-SATA-External-Hard-Driv.jpg)
ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT
$140.79
![Intel RS25DB080 1GB 8-Port 6Gbps PCIe SAS/SATA RAID Controller Card picture](/store/img/g/qmEAAOSwjcpmiD-z/s-l225/Intel-RS25DB080-1GB-8-Port-6Gbps-PCIe-SAS-SATA-RAI.jpg)
Intel RS25DB080 1GB 8-Port 6Gbps PCIe SAS/SATA RAID Controller Card
$20.00
![ASUS Hyper M.2 x16 Gen 4 RAID Card- Used Working picture](/store/img/g/fGwAAOSwAStmfi9c/s-l225/ASUS-Hyper-M-2-x16-Gen-4-RAID-Card-Used-Working.jpg)
ASUS Hyper M.2 x16 Gen 4 RAID Card- Used Working
$32.95
![Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile picture](/store/img/g/C7YAAOSwLYJl3nQQ/s-l225/Dell-PERC-H330-PCIe-3-0-x8-RAID-Storage-Controller.jpg)
Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile
$17.99
![ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture](/store/img/g/VpUAAOSweWVlEXFE/s-l225/ACASIS-2-5-3-5-inch-2-Bay-SATA-USB-3-0-Hard-Drive-.jpg)
ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID
$54.66
![OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire picture](/store/img/g/-FoAAOSwtEBmQ5qa/s-l225/OWC-Guardian-Maximus-Raid-Enclosure-SATA-Hard-Driv.jpg)
OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire
$36.99
![CompUSA Internal 2 Bay Removable Rack for 3 SATA Hard Drives Raid Configurations picture](/store/img/g/lrwAAOSwd7llPxya/s-l225/CompUSA-Internal-2-Bay-Removable-Rack-for-3-SATA-H.jpg)
CompUSA Internal 2 Bay Removable Rack for 3 SATA Hard Drives Raid Configurations
$25.00