vhtmg108
August 9th, 2012, 08:18 PM
Hi Guys,
I have a problem which makes me go grazy for 3 days.
On a newly installed Ubuntu server 12.04, I setup lxde and firefox via apt-get.
While I was trying to setup virtual-box I started to get "no space left on device" errors. Depending on the first failure, the linux-headers were broken. Now I cannot setup anything.
apt-get install thunderbird
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 : Depends: linux-headers-3.2.0-27-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
When I try to run "apt-get -f install" to fix linux-headers, I get "no space left on device" error.
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:
java-common tzdata-java
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.2.0-27 linux-headers-3.2.0-27-generic
The following NEW packages will be installed:
linux-headers-3.2.0-27 linux-headers-3.2.0-27-generic
0 upgraded, 2 newly installed, 0 to remove and 71 not upgraded.
1 not fully installed or removed.
Need to get 12.7 MB of archives.
After this operation, 67.4 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.2.0-27 all 3.2.0-27.43 [11.7 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-27-generic amd64 3.2.0-27.43 [987 kB]
Fetched 12.7 MB in 27s (454 kB/s)
(Reading database ... 45846 files and directories currently installed.)
Unpacking linux-headers-3.2.0-27 (from .../linux-headers-3.2.0-27_3.2.0-27.43_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-27_3.2.0-27.43_all.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-27/arch/mips/include/asm/xtalk/xwidget.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-27/arch/mips/include/asm/xtalk/xwidget.h'):
No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking linux-headers-3.2.0-27-generic (from .../linux-headers-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):
error creating symbolic link `./usr/src/linux-headers-3.2.0-27-generic/include/linux/writeback.h': No space left on device
No apport report written because the error message indicates a disk full error
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-3.2.0-27_3.2.0-27.43_all.deb
/var/cache/apt/archives/linux-headers-3.2.0-27-generic_3.2.0-27.43_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The disk is totally empty.
df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext4 68G 1.9G 62G 3% /
udev devtmpfs 2.0G 4.0K 2.0G 1% /dev
tmpfs tmpfs 791M 412K 791M 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.0G 68K 2.0G 1% /run/shm
Please give some advice. You can see the df result and the error.
Thanks.
I have a problem which makes me go grazy for 3 days.
On a newly installed Ubuntu server 12.04, I setup lxde and firefox via apt-get.
While I was trying to setup virtual-box I started to get "no space left on device" errors. Depending on the first failure, the linux-headers were broken. Now I cannot setup anything.
apt-get install thunderbird
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 : Depends: linux-headers-3.2.0-27-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
When I try to run "apt-get -f install" to fix linux-headers, I get "no space left on device" error.
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:
java-common tzdata-java
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
linux-headers-3.2.0-27 linux-headers-3.2.0-27-generic
The following NEW packages will be installed:
linux-headers-3.2.0-27 linux-headers-3.2.0-27-generic
0 upgraded, 2 newly installed, 0 to remove and 71 not upgraded.
1 not fully installed or removed.
Need to get 12.7 MB of archives.
After this operation, 67.4 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.2.0-27 all 3.2.0-27.43 [11.7 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.2.0-27-generic amd64 3.2.0-27.43 [987 kB]
Fetched 12.7 MB in 27s (454 kB/s)
(Reading database ... 45846 files and directories currently installed.)
Unpacking linux-headers-3.2.0-27 (from .../linux-headers-3.2.0-27_3.2.0-27.43_all.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-27_3.2.0-27.43_all.deb (--unpack):
unable to create `/usr/src/linux-headers-3.2.0-27/arch/mips/include/asm/xtalk/xwidget.h.dpkg-new' (while processing `./usr/src/linux-headers-3.2.0-27/arch/mips/include/asm/xtalk/xwidget.h'):
No space left on device
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Unpacking linux-headers-3.2.0-27-generic (from .../linux-headers-3.2.0-27-generic_3.2.0-27.43_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/linux-headers-3.2.0-27-generic_3.2.0-27.43_amd64.deb (--unpack):
error creating symbolic link `./usr/src/linux-headers-3.2.0-27-generic/include/linux/writeback.h': No space left on device
No apport report written because the error message indicates a disk full error
Errors were encountered while processing:
/var/cache/apt/archives/linux-headers-3.2.0-27_3.2.0-27.43_all.deb
/var/cache/apt/archives/linux-headers-3.2.0-27-generic_3.2.0-27.43_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
The disk is totally empty.
df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext4 68G 1.9G 62G 3% /
udev devtmpfs 2.0G 4.0K 2.0G 1% /dev
tmpfs tmpfs 791M 412K 791M 1% /run
none tmpfs 5.0M 0 5.0M 0% /run/lock
none tmpfs 2.0G 68K 2.0G 1% /run/shm
Please give some advice. You can see the df result and the error.
Thanks.