unable to repair package archive also i cant download anything

Asked by jesse

ok so all my downloads are failing due to lack of hard drive space and i am unable to free up space because the package archive has broken as well i have tried to repair it and this is what happens
installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 273779 files and directories currently installed.)
Unpacking linux-headers-3.11.0-22-generic (from .../linux-headers-3.11.0-22-generic_3.11.0-22.38~precise1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.11.0-22-generic_3.11.0-22.38~precise1_i386.deb (--unpack):
 error creating directory `./usr/src/linux-headers-3.11.0-22-generic/include/config/sctp/default/cookie': No space left on device
No apport report written because MaxReports is reached already
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.11.0-22-generic_3.11.0-22.38~precise1_i386.deb
Error in function:
dpkg: dependency problems prevent configuration of linux-headers-generic-lts-saucy:
 linux-headers-generic-lts-saucy depends on linux-headers-3.11.0-22-generic; however:
  Package linux-headers-3.11.0-22-generic is not installed.
dpkg: error processing linux-headers-generic-lts-saucy (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-lts-saucy:
 linux-generic-lts-saucy depends on linux-headers-generic-lts-saucy; however:
  Package linux-headers-generic-lts-saucy is not configured yet.
dpkg: error processing linux-generic-lts-saucy (--configure):
 dependency problems - leaving unconfigured

please help this is extremely frustrateing

Question information

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

Massive clue (copied from above):

 error creating directory `./usr/src/linux-headers-3.11.0-22-generic/include/config/sctp/default/cookie': No space left on device

Guess what the problem is?

If you run :

df -h; df -i

What is the output?

Thanks

Revision history for this message
jesse (nundin895) said :
#2

ran it and here is the output

jesse@ubuntu:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/loop0 3.8G 1.6G 2.1G 43% /
udev 995M 4.0K 995M 1% /dev
tmpfs 201M 820K 200M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1004M 680K 1003M 1% /run/shm
/dev/sda1 75G 56G 20G 75% /host
/dev/loop1 3.8G 3.6G 0 100% /home
/dev/loop2 3.8G 3.0G 645M 83% /usr
jesse@ubuntu:~$ df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/loop0 256000 39831 216169 16% /
udev 215502 465 215037 1% /dev
tmpfs 219951 384 219567 1% /run
none 219951 3 219948 1% /run/lock
none 219951 9 219942 1% /run/shm
/dev/sda1 0 0 0 - /host
/dev/loop1 256000 15650 240350 7% /home
/dev/loop2 256000 250175 5825 98% /usr

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

Ok what is the output of :

uname -a; lsb_release -a; dpkg -l | grep linux-image

Thanks

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

Also run:

sudo apt-get clean

There is no output. It just helps free more space

Revision history for this message
jesse (nundin895) said :
#5

jesse@ubuntu:~$ uname -a; lsb_release -a; dpkg -l | grep linux-image
Linux ubuntu 3.11.0-22-generic #38~precise1-Ubuntu SMP Fri May 16 20:50:12 UTC 2014 i686 i686 i386 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
ii linux-image-3.11.0-15-generic 3.11.0-15.25~precise1 Linux kernel image for version 3.11.0 on 32 bit x86 SMP
ii linux-image-3.11.0-18-generic 3.11.0-18.32~precise1 Linux kernel image for version 3.11.0 on 32 bit x86 SMP
ii linux-image-3.11.0-19-generic 3.11.0-19.33~precise1 Linux kernel image for version 3.11.0 on 32 bit x86 SMP
ii linux-image-3.11.0-20-generic 3.11.0-20.35~precise1 Linux kernel image for version 3.11.0 on 32 bit x86 SMP
ii linux-image-3.11.0-22-generic 3.11.0-22.38~precise1 Linux kernel image for version 3.11.0 on 32 bit x86 SMP
ii linux-image-generic-lts-saucy 3.11.0.22.19 Generic Linux kernel image

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

sudo apt-get --purge remove linux-image-3.11.0-15-generic

sudo apt-get --purge remove linux-image-3.11.0-18-generic

sudo apt-get --purge remove linux-image-3.11.0-19-generic

sudo apt-get --purge remove linux-image-3.11.0-20-generic

sudo apt-get --purge autoremove

sudo apt-get update

sudo apt-get upgrade

sudo apt-get dist-upgrade

Revision history for this message
jesse (nundin895) said :
#7

jesse@ubuntu:~$ sudo apt-get --purge remove linux-image-3.11.0-15-generic
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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jesse@ubuntu:~$ sudo apt-get --purge remove linux-image-3.11.0-18-generic
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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jesse@ubuntu:~$ sudo apt-get --purge remove linux-image-3.11.0-19-generic
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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jesse@ubuntu:~$ sudo apt-get --purge remove linux-image-3.11.0-20-generic
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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
jesse@ubuntu:~$ 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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not installed
E: Unmet dependencies. Try using -f.
jesse@ubuntu:~$ sudo apt-get update
Hit http://repo.steampowered.com precise Release.gpg
Hit http://us.archive.ubuntu.com precise Release.gpg
Hit http://repo.steampowered.com precise Release
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://ppa.launchpad.net precise Release.gpg
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise Release
Get:5 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:6 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Get:7 http://security.ubuntu.com precise-security/main Sources [106 kB]
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:8 http://us.archive.ubuntu.com precise-updates/main Sources [459 kB]
Get:9 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:10 http://security.ubuntu.com precise-security/universe Sources [30.7 kB]
Get:11 http://security.ubuntu.com precise-security/multiverse Sources [1,794 B]
Get:12 http://security.ubuntu.com precise-security/main i386 Packages [427 kB]
Hit http://repo.steampowered.com precise/steam Sources
Get:13 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:14 http://security.ubuntu.com precise-security/universe i386 Packages [98.3 kB]
Get:15 http://us.archive.ubuntu.com precise-updates/restricted Sources [8,056 B]
Get:16 http://us.archive.ubuntu.com precise-updates/universe Sources [107 kB]
Get:17 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,636 B]
Get:18 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:19 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:20 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:21 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Hit http://repo.steampowered.com precise/steam i386 Packages
Get:22 http://security.ubuntu.com precise-security/main Translation-en [184 kB]
Get:23 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,902 B]
Get:24 http://us.archive.ubuntu.com precise-updates/main i386 Packages [821 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Ign http://repo.steampowered.com precise/steam TranslationIndex
Hit https://private-ppa.launchpad.net precise Release.gpg
Hit https://private-ppa.launchpad.net precise Release
Get:25 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.7 kB]
Get:26 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [248 kB]
Hit http://ppa.launchpad.net precise Release
Hit https://private-ppa.launchpad.net precise/main i386 Packages
Get:27 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.5 kB]
Get:28 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:29 https://private-ppa.launchpad.net precise/main TranslationIndex [357 B]
Ign https://private-ppa.launchpad.net precise/main TranslationIndex
Get:30 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:31 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:32 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Get:33 http://us.archive.ubuntu.com precise-backports/main Sources [5,145 B]
Get:34 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:35 http://us.archive.ubuntu.com precise-backports/universe Sources [38.4 kB]
Get:36 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:37 http://us.archive.ubuntu.com precise-backports/main i386 Packages [6,420 B]
Get:38 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:39 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [41.2 kB]
Get:40 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Get:41 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:42 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:43 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:44 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:45 http://us.archive.ubuntu.com precise-updates/main Translation-en [351 kB]
Hit http://us.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://us.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://us.archive.ubuntu.com precise-backports/main Translation-en
Hit http://us.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:46 http://us.archive.ubuntu.com precise-backports/universe Translation-en [32.9 kB]
Ign http://ppa.launchpad.net precise/main Translation-en_US
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://repo.steampowered.com precise/steam Translation-en_US
Ign http://repo.steampowered.com precise/steam Translation-en
Ign https://private-ppa.launchpad.net precise/main Translation-en_US
Ign https://private-ppa.launchpad.net precise/main Translation-en
Fetched 3,185 kB in 9s (352 kB/s)
Reading package lists... Done
jesse@ubuntu:~$ sudo apt-get upgrade
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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not installed
E: Unmet dependencies. Try using -f.
jesse@ubuntu:~$ sudo apt-get dist-upgrade
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:
 linux-headers-generic-lts-saucy : Depends: linux-headers-3.11.0-22-generic but it is not installed
E: Unmet dependencies. Try using -f.

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

Did you run:

sudo apt-get -f install

As your own output says?

You know when the terminal outputs text do you actually read it? At all?

Revision history for this message
jesse (nundin895) said :
#9

as a matter of fact i did run it and if failed here is what it said and yes i do read it i havent used linuxmush at all this is the second time i have ever tried to learn it

jesse@ubuntu:~$ 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:
  language-pack-kde-en language-pack-kde-en-base kde-l10n-engb guile-1.8-libs
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-3.11.0-23 linux-headers-3.11.0-23-generic
  linux-headers-generic-lts-saucy
The following NEW packages will be installed:
  linux-headers-3.11.0-23 linux-headers-3.11.0-23-generic
The following packages will be upgraded:
  linux-headers-generic-lts-saucy
1 upgraded, 2 newly installed, 0 to remove and 40 not upgraded.
2 not fully installed or removed.
Need to get 13.7 MB of archives.
After this operation, 74.9 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.11.0-23 all 3.11.0-23.40~precise1 [12.6 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.11.0-23-generic i386 3.11.0-23.40~precise1 [1,067 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-generic-lts-saucy i386 3.11.0.23.20 [2,392 B]
Fetched 13.7 MB in 6s (2,256 kB/s)
Selecting previously unselected package linux-headers-3.11.0-23.
(Reading database ... 273779 files and directories currently installed.)
Unpacking linux-headers-3.11.0-23 (from .../linux-headers-3.11.0-23_3.11.0-23.40~precise1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.11.0-23_3.11.0-23.40~precise1_all.deb (--unpack):
 unable to create `/usr/src/linux-headers-3.11.0-23/arch/powerpc/include/uapi/asm/termbits.h.dpkg-new' (while processing `./usr/src/linux-headers-3.11.0-23/arch/powerpc/include/uapi/asm/termbits.h'): No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Selecting previously unselected package linux-headers-3.11.0-23-generic.
Unpacking linux-headers-3.11.0-23-generic (from .../linux-headers-3.11.0-23-generic_3.11.0-23.40~precise1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.11.0-23-generic_3.11.0-23.40~precise1_i386.deb (--unpack):
 unable to create `/usr/src/linux-headers-3.11.0-23-generic/include/config/crc/t10dif.h.dpkg-new' (while processing `./usr/src/linux-headers-3.11.0-23-generic/include/config/crc/t10dif.h'): No space left on device
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-headers-3.11.0-23_3.11.0-23.40~precise1_all.deb
 /var/cache/apt/archives/linux-headers-3.11.0-23-generic_3.11.0-23.40~precise1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

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

Did you install using Wubi?

Revision history for this message
jesse (nundin895) said :
#11

yes

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

Oh god. You do realize that Wubi has not been developed in over 2 years now.....

I can recommend you run a chkdsk on your NTFS partition to make sure it is complete and consistent. The shortcoming of NTFS directly affect the experience in Ubuntu

Wubi is and was never a long term solution, it is a quick-and-dirty try before you buy.

Revision history for this message
jesse (nundin895) said :
#13

thanks or the info i didnt kow that

Revision history for this message
jesse (nundin895) said :
#14

Thanks actionparsnip, that solved my question.