Problem installing everything!

Asked by Draygoes

I installed remastersys, but accidentally grabbed a lower version.

So I removed it with "apt-get purge remastersys".

Now, to install any package, it says that I need casper. But installing casper produces the following error: "Sub-process /usr/bin/dpkg returned an error code (1)"

I have followed all of the steps included here: https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure

Here is the terminal output...

draygoes@Vocs:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
draygoes@Vocs:~$ uname -a
Linux Vocs 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
draygoes@Vocs:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
[sudo] password for draygoes:
draygoes@Vocs:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
draygoes@Vocs:~$ sudo rm -rf /var/lib/dpkg/updates/*
draygoes@Vocs:~$ sudo rm -rf /var/lib/apt/lists
draygoes@Vocs:~$ sudo mkdir /var/lib/apt/lists
draygoes@Vocs:~$ sudo mkdir /var/lib/apt/lists/partial
draygoes@Vocs:~$ sudo rm /var/cache/apt/*.bin
draygoes@Vocs:~$ LANG=C;sudo apt-get clean
draygoes@Vocs:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
draygoes@Vocs:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  remastersys: Depends: casper but it is not installable
E: Unmet dependencies. Try using -f.
draygoes@Vocs:~$ LANG=C;sudo apt-get update
Get:1 http://download.virtualbox.org lucid Release.gpg [197B]
Get:2 http://download.virtualbox.org lucid Release [3445B]
Ign http://www.geekconnection.org karmic/ Release.gpg
Ign http://www.geekconnection.org karmic/ Release
Get:3 http://download.virtualbox.org lucid/non-free Packages [1301B]
Get:4 http://us.archive.ubuntu.com karmic Release.gpg [189B]
Get:5 http://us.archive.ubuntu.com karmic-updates Release.gpg [189B]
Get:6 http://archive.canonical.com karmic Release.gpg [189B]
Get:7 http://security.ubuntu.com karmic-security Release.gpg [189B]
Ign http://www.geekconnection.org karmic/ Packages
Ign http://www.geekconnection.org karmic/ Packages
Get:8 http://ppa.launchpad.net karmic Release.gpg [307B]
Get:9 http://us.archive.ubuntu.com karmic Release [65.9kB]
Get:10 http://www.geekconnection.org karmic/ Packages [956B]
Get:11 http://archive.canonical.com karmic Release [9359B]
Get:12 http://security.ubuntu.com karmic-security Release [44.1kB]
Get:13 http://ppa.launchpad.net karmic Release [66.0kB]
Get:14 http://archive.canonical.com karmic/partner Packages [4952B]
Get:15 http://archive.canonical.com karmic/partner Sources [1862B]
Get:16 http://us.archive.ubuntu.com karmic-updates Release [44.1kB]
Get:17 http://security.ubuntu.com karmic-security/main Packages [172kB]
Get:18 http://us.archive.ubuntu.com karmic/main Packages [1353kB]
Get:19 http://ppa.launchpad.net karmic/main Packages [833B]
Get:20 http://security.ubuntu.com karmic-security/restricted Packages [14B]
Get:21 http://security.ubuntu.com karmic-security/main Sources [80.0kB]
Get:22 http://security.ubuntu.com karmic-security/restricted Sources [14B]
Get:23 http://security.ubuntu.com karmic-security/universe Packages [81.7kB]
Get:24 http://security.ubuntu.com karmic-security/universe Sources [23.6kB]
Get:25 http://security.ubuntu.com karmic-security/multiverse Packages [2005B]
Get:26 http://security.ubuntu.com karmic-security/multiverse Sources [569B]
Get:27 http://us.archive.ubuntu.com karmic/restricted Packages [7971B]
Get:28 http://us.archive.ubuntu.com karmic/main Sources [640kB]
Get:29 http://us.archive.ubuntu.com karmic/restricted Sources [3270B]
Get:30 http://us.archive.ubuntu.com karmic/universe Packages [5133kB]
Get:31 http://us.archive.ubuntu.com karmic/universe Sources [2795kB]
Get:32 http://us.archive.ubuntu.com karmic/multiverse Packages [190kB]
Get:33 http://us.archive.ubuntu.com karmic/multiverse Sources [116kB]
Get:34 http://us.archive.ubuntu.com karmic-updates/main Packages [290kB]
Get:35 http://us.archive.ubuntu.com karmic-updates/restricted Packages [14B]
Get:36 http://us.archive.ubuntu.com karmic-updates/main Sources [114kB]
Get:37 http://us.archive.ubuntu.com karmic-updates/restricted Sources [14B]
Get:38 http://us.archive.ubuntu.com karmic-updates/universe Packages [158kB]
Get:39 http://us.archive.ubuntu.com karmic-updates/universe Sources [46.6kB]
Get:40 http://us.archive.ubuntu.com karmic-updates/multiverse Packages [11.0kB]
Get:41 http://us.archive.ubuntu.com karmic-updates/multiverse Sources [4960B]
Fetched 11.5MB in 15s (742kB/s)
Reading package lists... Done
draygoes@Vocs:~$ sudo dpkg --clear-avail
draygoes@Vocs:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of remastersys:
 remastersys depends on casper; however:
  Package casper is not installed.
dpkg: error processing remastersys (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 remastersys
draygoes@Vocs:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  live-initramfs hwdata busybox
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  casper
The following NEW packages will be installed:
  casper
0 upgraded, 1 newly installed, 0 to remove and 299 not upgraded.
1 not fully installed or removed.
Need to get 70.2kB of archives.
After this operation, 406kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com karmic/main casper 1.206 [70.2kB]
Fetched 70.2kB in 0s (81.3kB/s)
(Reading database ... 122756 files and directories currently installed.)
Unpacking casper (from .../archives/casper_1.206_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/casper_1.206_i386.deb (--unpack):
 trying to overwrite '/usr/share/initramfs-tools/conf.d/compcache', which is also in package live-initramfs 0:1.157.2-1
Errors were encountered while processing:
 /var/cache/apt/archives/casper_1.206_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
draygoes@Vocs:~$ LANG=C;sudo apt-get update && sudo apt-get dist-upgrade
Hit http://download.virtualbox.org lucid Release.gpg
Hit http://download.virtualbox.org lucid Release
Hit http://download.virtualbox.org lucid/non-free Packages
Hit http://us.archive.ubuntu.com karmic Release.gpg
Hit http://us.archive.ubuntu.com karmic-updates Release.gpg
Ign http://www.geekconnection.org karmic/ Release.gpg
Hit http://archive.canonical.com karmic Release.gpg
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://www.geekconnection.org karmic/ Release
Ign http://www.geekconnection.org karmic/ Packages
Hit http://us.archive.ubuntu.com karmic Release
Hit http://security.ubuntu.com karmic-security Release
Hit http://archive.canonical.com karmic Release
Ign http://www.geekconnection.org karmic/ Packages
Hit http://us.archive.ubuntu.com karmic-updates Release
Hit http://www.geekconnection.org karmic/ Packages
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://archive.canonical.com karmic/partner Packages
Hit http://us.archive.ubuntu.com karmic/main Packages
Hit http://us.archive.ubuntu.com karmic/restricted Packages
Hit http://us.archive.ubuntu.com karmic/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://archive.canonical.com karmic/partner Sources
Hit http://us.archive.ubuntu.com karmic/restricted Sources
Hit http://us.archive.ubuntu.com karmic/universe Packages
Hit http://us.archive.ubuntu.com karmic/universe Sources
Hit http://us.archive.ubuntu.com karmic/multiverse Packages
Hit http://us.archive.ubuntu.com karmic/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Packages
Hit http://us.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Hit http://us.archive.ubuntu.com karmic-updates/main Sources
Hit http://us.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://us.archive.ubuntu.com karmic-updates/universe Packages
Hit http://us.archive.ubuntu.com karmic-updates/universe Sources
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://us.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://ppa.launchpad.net karmic Release.gpg
Hit http://ppa.launchpad.net karmic Release
Hit http://ppa.launchpad.net karmic/main Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  remastersys: Depends: casper but it is not installed
E: Unmet dependencies. Try using -f.
draygoes@Vocs:~$ sudo apt-get install casper
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  live-initramfs hwdata busybox
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  casper
0 upgraded, 1 newly installed, 0 to remove and 299 not upgraded.
1 not fully installed or removed.
Need to get 0B/70.2kB of archives.
After this operation, 406kB of additional disk space will be used.
(Reading database ... 122756 files and directories currently installed.)
Unpacking casper (from .../archives/casper_1.206_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/casper_1.206_i386.deb (--unpack):
 trying to overwrite '/usr/share/initramfs-tools/conf.d/compcache', which is also in package live-initramfs 0:1.157.2-1
Errors were encountered while processing:
 /var/cache/apt/archives/casper_1.206_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
draygoes@Vocs:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Draygoes (iamdraygoes) said :
#1

EDIT
I just found out that I cannot even update the system!!!

Error: You have 1 broken package on your system"
I have a feeling it is related to the casper problem.

That is the last time I apt-get purge anything lol

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#2

chill out dude, jeez. If you just state your question you look more professional and people will want to help you more rather than typing

"OMG my arm is going to fall off if this doesn't get fixed!!!"

it's nothing WHATSOEVER to do with purging anything at all. If you actually read the output you would have seen this:

dpkg: error processing /var/cache/apt/archives/casper_1.206_i386.deb (--unpack):
 trying to overwrite '/usr/share/initramfs-tools/conf.d/compcache', which is also in
package live-initramfs 0:1.157.2-1

So there is a duplicate file in 2 packages and the deb and dpkg doesn't like that, we can get you ok with a simple command:

sudo dpkg --force-all -i /var/cache/apt/archives/casper_1.206_i386.deb; sudo apt-get -f install

Please also log a bug for casper as the duplicate file situation will need resolving.

Revision history for this message
Draygoes (iamdraygoes) said :
#3

Thank you for your reply.
The additional post came out as urgent, but it was actually frustration. I have been trying to resolve this myself for the last 4 hours with no results. I am a linux noob.

Your solution worked fine, there are no problems now.
And yes, I will submit a bug report for casper.

Guess I should learn how to read the output a little better right? I will read up on it.

Thanks again for your help.

Revision history for this message
Draygoes (iamdraygoes) said :
#4

Thanks actionparsnip, that solved my question.