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
  •  


Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive picture

Fanxiang SSD 4TB 2TB 1TB PS5 SSD M.2 NVME SSD 7300MBS PCIe 4.0 Solid State Drive

$269.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$188.99



Kingshark M.2 2242 2280 SSD 128GB 256GB 512GB 1TB Internal Solid State Drive Lot picture

Kingshark M.2 2242 2280 SSD 128GB 256GB 512GB 1TB Internal Solid State Drive Lot

$179.99



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$119.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$15.50



WD BLUE 3D NAND 250GB 2.5

WD BLUE 3D NAND 250GB 2.5" SATA Laptop SSD Solid State Tested,Wiped -WDS250G2B0A

$16.00



Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006 picture

Western Digital 256GB M.2 PCIe NVMe SSD PC SN740 M.2 2280 SDDPNQD-256G-1006

$16.99



Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot picture

Patriot P300 128G 256GB 512GB 1TB 2TB M.2 2280 PCIe Gen3x4 NVMe Internal SSD Lot

$16.99



Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture

Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot

$109.99



Fanxiang SSD 4TB 2TB 1TB 512GB SATA SSD 2.5'' III Internal Solid State Drive lot picture

Fanxiang SSD 4TB 2TB 1TB 512GB SATA SSD 2.5'' III Internal Solid State Drive lot

$113.99