Results 1 to 5 of 5

Thread: apt-get problem "returned an error code (1)"

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    3

    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?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479

    Re: apt-get problem "returned an error code (1)"

    Quote 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

  3. #3
    Junior Member
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    3
    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

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    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.

  5. #5
    Junior Member
    Join Date
    Oct 2003
    Location
    Madrid
    Posts
    3
    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

  1. watch out for the "tohd" cheat code
    By daveclem in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 02-18-2005, 08:09 PM
  2. Need help with the "alsa=" cheat code
    By lothario in forum Hdd Install / Debian / Apt
    Replies: 14
    Last Post: 09-10-2004, 01:52 PM
  3. cheat code "persistance" with hd install
    By hardbop200 in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 09-10-2004, 12:49 AM
  4. Diskless Install Error "block-major-2 not found"
    By phillfri in forum Hardware & Booting
    Replies: 3
    Last Post: 09-26-2003, 01:52 AM
  5. "Error: No Wireless Network Card Found"
    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
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$44.85



Samsung 8GB - 1Rx8 - PC4-2666V Desktop RAM Memory | M378A1K43CB2-CTD picture

Samsung 8GB - 1Rx8 - PC4-2666V Desktop RAM Memory | M378A1K43CB2-CTD

$9.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$23.95



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture

Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory

$54.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Micron/Samsung/SKHynix 32GB(16GBX2) 1Rx8 PC4-3200AA DDR4 Laptop RAM Memory picture

Micron/Samsung/SKHynix 32GB(16GBX2) 1Rx8 PC4-3200AA DDR4 Laptop RAM Memory

$42.99



256GB Kit (8 x 32GB) PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM picture

256GB Kit (8 x 32GB) PC4-17000 LRDIMM DELL POWEREDGE R730xd R730 R630 Memory RAM

$255.92



Hynix 64GB 2Rx4 PC4-3200 RDIMM DDR4-25600 ECC REG Registered Server Memory RAM picture

Hynix 64GB 2Rx4 PC4-3200 RDIMM DDR4-25600 ECC REG Registered Server Memory RAM

$129.99