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
  •  


HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2620V3 | NO RAM | P244BR | 2xHDD Tray picture

HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2620V3 | NO RAM | P244BR | 2xHDD Tray

$179.00



HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2630V3 | 32GB | P244BR | 2x300GB 15K picture

HPE BL460c G9 ProLiant Blade | 2x Xeon E5-2630V3 | 32GB | P244BR | 2x300GB 15K

$299.00



DELL PEM640 POWEREDGE M640 BLADE SERVER picture

DELL PEM640 POWEREDGE M640 BLADE SERVER

$539.95



HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives picture

HP ProLiant BL460c G9 (Gen9) 2x E5-2670V3 12 Core 3.1GHz No Ram or No Drives

$59.98



Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS picture

Dell PowerEdge M620 0F9HJC Blade Server 2*E5-2670 2.60GHz 192GB RAM 2*300GB SAS

$103.99



DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC picture

DELL M630 BLADE SERVER x2 XEON E5-2660V3 @ 2.6GH H730 PERC HDD CADDIES 16GB FC

$50.00



2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD picture

2 x HP ProLiant BL460c (447707-B21) Blade Servers No RAM No HDD

$30.00



Dell PowerEdge M640 Blade Server picture

Dell PowerEdge M640 Blade Server

$539.95



Dell PowerEdge M620 Blade Server picture

Dell PowerEdge M620 Blade Server

$39.99



HP ProLiant BL460c Gen9 Blade 2x E5-2660v3 2.6GHz =20 Cores 64GB P246 650FLB picture

HP ProLiant BL460c Gen9 Blade 2x E5-2660v3 2.6GHz =20 Cores 64GB P246 650FLB

$196.00