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
  •  


Juniper MX104-AC 4 MIC Slot Chassis w/ 2x RE-S-MX104 and 2x PWR-MX104-AC picture

Juniper MX104-AC 4 MIC Slot Chassis w/ 2x RE-S-MX104 and 2x PWR-MX104-AC

$1899.00



*New* MIC-MRATE Juniper 12-Port Multi-Rate MIC module picture

*New* MIC-MRATE Juniper 12-Port Multi-Rate MIC module

$749.00



Juniper 48-Port GbE PoE+ & 4-Port 10GB SFP+ Network Switch EX3300-48P w/ License picture

Juniper 48-Port GbE PoE+ & 4-Port 10GB SFP+ Network Switch EX3300-48P w/ License

$49.99



Juniper Networks EX2300-24P 24 Port Gigabit PoE 4 SFP 1/10G Network Switch picture

Juniper Networks EX2300-24P 24 Port Gigabit PoE 4 SFP 1/10G Network Switch

$119.00



Juniper EX4300-48T 48 Port 1G 4 QSFP 40G Dual PSU AFO w/ Rails, EX-UM-4X4SFP Mod picture

Juniper EX4300-48T 48 Port 1G 4 QSFP 40G Dual PSU AFO w/ Rails, EX-UM-4X4SFP Mod

$169.00



Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord picture

Juniper EX3300-48P, 48 Port PoE+ Gigabit Network Switch w/ Power cord

$54.99



Juniper 48-Port PoE GbE Network Switch  w/ Dual Power Supplies F B EX4300-48P picture

Juniper 48-Port PoE GbE Network Switch w/ Dual Power Supplies F B EX4300-48P

$178.99



Juniper EX4600-40F-AFO 24x SFP+/SFP & 4x QSFP+ Ports Switch 2XPSU TESTED picture

Juniper EX4600-40F-AFO 24x SFP+/SFP & 4x QSFP+ Ports Switch 2XPSU TESTED

$749.95



Juniper QFX5100-48S 48-Port 10GbE SFP+ 6x40GbE QSFP Network Switch w/Ears Tested picture

Juniper QFX5100-48S 48-Port 10GbE SFP+ 6x40GbE QSFP Network Switch w/Ears Tested

$599.99



Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch picture

Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch

$42.11