Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: dpkg Confused

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    9

    dpkg Confused

    I'm confused about the dpkg command.
    Btw, I'm solemnly sorry but starting this thread as it has been done many time but I searched for answer but found nothing.
    This is a freshly hd-installed Knoppix 3.3.

    Ok like most I did "dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb" because "libxcursor-dev_1.0.2-2_i386.deb" is annoying.

    root@box:~# dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb
    dpkg: error processing libxcursor-dev_1.0.2-2_i386.deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    libxcursor-dev_1.0.2-2_i386.deb

  2. #2
    Junior Member
    Join Date
    Jan 2004
    Posts
    9
    You might wonder what I was trying to do.
    Simple, apt-get upgrade.

    But then I got to this:

    root@box:~# apt-get upgrade
    Reading Package Lists... Done
    Building Dependency Tree... Done
    You might want to run `apt-get -f install' to correct these.
    The following packages have unmet dependencies:
    libqt3-mt-dev: Depends: libxcursor-dev but it is not installed
    E: Unmet dependencies. Try using -f.
    root@box:~# 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 320 not upgraded.
    40 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 ... 113041 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)

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

    Re: dpkg Confused

    Quote Originally Posted by none1
    I'm confused about the dpkg command.
    Btw, I'm solemnly sorry but starting this thread as it has been done many time but I searched for answer but found nothing.
    This is a freshly hd-installed Knoppix 3.3.

    Ok like most I did "dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb" because "libxcursor-dev_1.0.2-2_i386.deb" is annoying.

    root@box:~# dpkg -i --force-overwrite libxcursor-dev_1.0.2-2_i386.deb
    dpkg: error processing libxcursor-dev_1.0.2-2_i386.deb (--install):
    cannot access archive: No such file or directory
    Errors were encountered while processing:
    libxcursor-dev_1.0.2-2_i386.deb
    And from the post below it:
    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
    So you want to cd /var/cache/apt/archives then run the command to overwrite or use the absolute path in the command dpkg -i --force-overwrite /var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb.

  4. #4
    Junior Member
    Join Date
    Jan 2004
    Posts
    9
    Not sure if I did this correctly as I believe I did what should be required from you.

    root@box:~# cd /var/cache/apt/archives
    root@box:/var/cache/apt/archives# dpkg -i --force-overwrite /var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb
    (Reading database ... 113041 files and directories currently installed.)
    Unpacking libxcursor-dev (from .../libxcursor-dev_1.0.2-2_i386.deb) ...
    dpkg - warning, overriding problem because --force enabled:
    trying to overwrite `/usr/X11R6/include/X11/Xcursor/Xcursor.h', which is also in package xlibs-dev
    dpkg: dependency problems prevent configuration of libxcursor-dev:
    libxcursor-dev depends on libxcursor1 (= 1.0.2-2); however:
    Package libxcursor1 is not configured yet.
    libxcursor-dev depends on libc6-dev | libc-dev; however:
    Package libc6-dev is not configured yet.
    Package libc-dev is not installed.
    Package libc6-dev which provides libc-dev is not configured yet.
    dpkg: error processing libxcursor-dev (--install):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    libxcursor-dev

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by none1
    Not sure if I did this correctly as I believe I did what should be required from you.

    root@box:~# cd /var/cache/apt/archives
    root@box:/var/cache/apt/archives# dpkg -i --force-overwrite /var/cache/apt/archives/libxcursor-dev_1.0.2-2_i386.deb
    (Reading database ... 113041 files and directories currently installed.)
    Unpacking libxcursor-dev (from .../libxcursor-dev_1.0.2-2_i386.deb) ...
    dpkg - warning, overriding problem because --force enabled:
    trying to overwrite `/usr/X11R6/include/X11/Xcursor/Xcursor.h', which is also in package xlibs-dev
    dpkg: dependency problems prevent configuration of libxcursor-dev:
    libxcursor-dev depends on libxcursor1 (= 1.0.2-2); however:
    Package libxcursor1 is not configured yet.
    libxcursor-dev depends on libc6-dev | libc-dev; however:
    Package libc6-dev is not configured yet.
    Package libc-dev is not installed.
    Package libc6-dev which provides libc-dev is not configured yet.
    dpkg: error processing libxcursor-dev (--install):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    libxcursor-dev
    Well thats certainly a mess you should try for the unconfigured dpkg --configure -a and maybe the apt-get -f install mentioned above in the message but before you do either see if it will complete your apt-get upgrade first it's best not to force to many things if you do not have to. If it starts complaining about an individual package being not install then try to use just apt-get install package_name then go back to the apt-get upgrade again rinse/repeat as necessary. BTW once you changed to the /archives directory you did not have to really use the entire directory in the path it would have found the package with the first shorter command you tried.

  6. #6
    Junior Member
    Join Date
    Jan 2004
    Posts
    9
    Thank you, it certainly did work.
    I had to apt-get upgrade then update and then repeat over and over. I thought it was a once-a-process-to-do.
    Thank you Stephen.

  7. #7
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by none1
    Thank you, it certainly did work.
    I had to apt-get upgrade then update and then repeat over and over. I thought it was a once-a-process-to-do.
    Thank you Stephen.
    It usually is but where you had the error it had the package system was messed up and it had to work to correct it one thing you can try in the future instead of apt-get update try dselect update that syncs both the apt and dpkg databases so they both see the same thing installed it may not haved helped here but it is something to keep in mind for the future.

  8. #8
    Junior Member
    Join Date
    Jan 2004
    Posts
    9
    I do have another question.

    To remove packages I do apt-get remove [packagename].

    Now when I remove.. say game01 (just an example) it's gone from my system, right?

    Now if I do apt-get update/upgrade, will it be installed again?

    What does apt-get remove delete? EVERYTHING including the conf file? Or just the files but not the conf file?

    Thanks again.

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by none1
    I do have another question.

    To remove packages I do apt-get remove [packagename].

    Now when I remove.. say game01 (just an example) it's gone from my system, right?

    Now if I do apt-get update/upgrade, will it be installed again?

    What does apt-get remove delete? EVERYTHING including the conf file? Or just the files but not the conf file?

    Thanks again.
    Once you remove the package apt will not try to re-install it unless some other package you want needs the package that you removed for itself to work. The remove just removes the package itself not the configuration files to do that you need apt-get --purge remove package_name there is all kinds of options you can use with apt-get you may want to use man apt-get in a console window, one of my favorites is the -s switch which simulates the action that apt will perform a sort of dry run so you can see the changes before you make them you should always use the -s then remove it from the line to actually take the action.

  10. #10
    Junior Member
    Join Date
    Jan 2004
    Posts
    9
    Ok I just want to confirm this.

    If I want to completely remove something, I do the following:

    apt-get remove [package]
    dpkg -P [package]

    Those two will completely remove the [package] off my system right?

Page 1 of 2 12 LastLast

Similar Threads

  1. Confused
    By samhainbaphomet in forum General Support
    Replies: 8
    Last Post: 02-04-2005, 11:04 AM
  2. i errored and am confused how to fix it!. help!!!!
    By hogwash in forum MS Windows & New to Linux
    Replies: 13
    Last Post: 12-22-2004, 04:14 AM
  3. very confused....
    By poundsmack in forum General Support
    Replies: 8
    Last Post: 10-23-2004, 10:02 AM
  4. apt-get / dpkg error: unable to access dpkg status area
    By Nitromethane1261 in forum General Support
    Replies: 2
    Last Post: 09-15-2004, 12:09 AM
  5. Confused new user
    By phoward in forum General Support
    Replies: 3
    Last Post: 03-31-2003, 07:46 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
  •  


WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN picture

WD 2TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0020BBK-WESN

$49.99



Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5

Seagate Exos X16 ST14000NM001G 14TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$169.99



Seagate Exos X22 ST20000NM004E 20TB 512E SATA 6Gb/s 3.5

Seagate Exos X22 ST20000NM004E 20TB 512E SATA 6Gb/s 3.5" Enterprise Hard Drive

$268.99



WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN picture

WD 16TB Elements Desktop, Certified Refurbished Hard Drive - RWDBWLG0160HBK-NESN

$174.99



HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5

HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601

$82.99



Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5

Seagate Exos 7E10 ST2000NM000B 2TB 7200RPM SATA 6.0Gb/s 3.5" Internal Hard Drive

$29.99



HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5

HGST Ultrastar HE10 HUH721010ALE600 10TB SATA 6Gb/s 7200RPM 3.5" Enterprise HDD

$69.99



2 PACK  Seagate ST1000LM035 Mobile HDD 1TB 2.5

2 PACK Seagate ST1000LM035 Mobile HDD 1TB 2.5" SATA III Laptop Hard Drive

$26.85



WD 4TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0040BBK-WESN picture

WD 4TB Certified Refurbished Elements, External Hard Drive - RWDBU6Y0040BBK-WESN

$69.99



8TB Seagate Archive SATA 3.5

8TB Seagate Archive SATA 3.5" HDD Hard Drive 100% Healthy 200MB/s ST8000AS0002

$36.42