Ubuntu Software Center constantly crashing and/or freezing
It seems to always happen when installing a .deb file
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Mark Rijckenberg
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Open a terminal (CTRL+ALT+T) and run the commands below , one by one.
sudo apt-get update
wget "http://
chmod +x software-center-fix
sudo ./software-
Probably your problem will be solved with above commands, but IF NOT , then post full results back here.
Regards
NikTh
Revision history for this message
|
#2 |
For command 1, it reported this:
Hit http://
Get:1 http://
Hit http://
Get:2 http://
Hit http://
Hit http://
Hit http://
Err http://
Hit http://
Err http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Ign http://
Fetched 1,866 B in 2s (807 B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://
W: Failed to fetch http://
W: Failed to fetch http://
W: Some index files failed to download. They have been ignored, or old ones used instead.
For command 2, it reported this:
--2013-05-23 19:25:34-- http://
Resolving ubuntuone.com (ubuntuone.com)... 91.189.89.205, 91.189.89.204
Connecting to ubuntuone.com (ubuntuone.
HTTP request sent, awaiting response... 200 OK
Length: 568 [application/
Saving to: ‘/home/
100%[==
2013-05-23 19:25:35 (18.8 MB/s) - ‘/home/
For command 4, it reported this:
sudo: unable to write to /var/lib/
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
hddtemp libpanel-applet-4-0 libsensors-
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
software-center* ubuntu-desktop*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 3,647 kB disk space will be freed.
Do you want to continue [Y/n]? y
dpkg: unrecoverable fatal error, aborting:
unable to fill /var/lib/
E: Sub-process /usr/bin/dpkg returned an error code (2)
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Reading plugin /usr/share/
Most recent dataset: Thu May 23 19:24:06 2013.
Most recent update for: Sun May 19 21:34:50 2013.
Aggregating value information.
Initializing plugins.
Reading .desktop files from /usr/share/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Reading en translations from /var/lib/
Rebuilding Xapian index... 0%
apitrace-
apitrace-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
arc-gui-
Rebuilding Xapian index... 4%
chinese-
chinese-
Rebuilding Xapian index... 8%
drumkv1:
drumkv1:
Rebuilding Xapian index... 10%
expeyes-
expeyes-
expeyes-
expeyes-
Rebuilding Xapian index... 11%
firewall-
firewall-
firewall-
firewall-
five-or-
five-or-
Rebuilding Xapian index... 12%
four-in-
four-in-
Rebuilding Xapian index... 16%
gnome-calculato
gnome-calculato
gnome-klotski:
gnome-klotski:
gnome-mines:
gnome-mines:
gnome-nibbles:
gnome-nibbles:
gnome-robots:
gnome-robots:
gnome-tetravex:
gnome-tetravex:
Rebuilding Xapian index... 19%
ibus-libpinyin:
ibus-libpinyin:
ibus-libpinyin:
ibus-libpinyin:
Rebuilding Xapian index... 20%
indicator-
Rebuilding Xapian index... 22%
x
x
Traceback (most recent call last):
File "/usr/sbin/
indexer.
File "/usr/lib/
self.
File "/usr/lib/
db = xapian.
File "/usr/lib/
_xapian.
xapian.
Hit http://
Get:1 http://
Hit http://
Get:2 http://
Err http://
Error writing to output file - write (28: No space left on device) [IP: 91.189.91.15 80]
Ign http://
Hit http://
Err http://
Error writing to output file - write (28: No space left on device) [IP: 91.189.91.15 80]
Ign http://
Hit http://
Ign http://
Ign http://
Hit http://
E: Could not open file /var/lib/
Reading package lists... Error!
E: Write error - write (28: No space left on device)
E: IO Error saving source cache
E: The package lists or status file could not be parsed or opened.
Reading package lists... Error!
E: Unable to synchronize mmap - msync (28: No space left on device)
E: The package lists or status file could not be parsed or opened.
Updating software catalog...this may take a moment.
INFO:softwarece
Traceback (most recent call last):
File "/usr/sbin/
pathname, appinfo_
File "/usr/share/
cache.open()
File "/usr/share/
line 261, in open
self._cache = apt.Cache(progress)
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
SystemError: E:Unable to synchronize mmap - msync (28: No space left on device), E:The package lists or status file could not be parsed or opened.
Updating software catalog...this may take a moment.
INFO:softwarece
Traceback (most recent call last):
File "/usr/sbin/
pathname, appinfo_
File "/usr/share/
cache.open()
File "/usr/share/
self._cache = apt.Cache(progress)
File "/usr/lib/
self.
File "/usr/lib/
self._cache = apt_pkg.
SystemError: E:Unable to synchronize mmap - msync (28: No space left on device), E:The package lists or status file could not be parsed or opened.
Reading package lists... Error!
E: Unable to synchronize mmap - msync (28: No space left on device)
E: The package lists or status file could not be parsed or opened.
It keeps saying Ubuntu Software Center had a problem (or maybe it said crashed).
Revision history for this message
|
#3 |
FIRST reboot your PC once.
Then open a terminal and..
..Run these commands one by one and post back full results
sudo apt-key adv --recv-key --keyserver keyserver.
sudo apt-get --purge autoremove
sudo apt-get autoclean
sudo apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
sudo rm /var/lib/
sudo apt-get update
sudo apt-get dist-upgrade
Regards
NikTh
Revision history for this message
|
#4 |
The only true issue here (it seems) is the following error message:
dpkg: unrecoverable fatal error, aborting:
unable to fill /var/lib/
So your harddisk is full and that is why Ubuntu Software Center is crashing.
I suggest freeing up diskspace by deleting old kernels that are located in /boot
You could use the following bash shell script to delete old Linux kernels:
I suggest saving the script below as the file removekernel.sh and then making the file removekernel.sh executable:
#!/bin/bash
# TYPE: Bash script.
# PURPOSE: This bash shell script allows to easily remove GNU/Linux kernels.
# The script should be copied to /usr/bin/
# It is a poor man's alternative to Ubuntu Tweak.
# REQUIRES: bash, Ubuntu 12.04 LTS or newer
# REVISED: 20130302
# REVISED: 20130516
echo "Please press one of the 4 numbers below and then hit the <ENTER> key to execute"
select CHOICE in list-installed-
do
case "$CHOICE" in
list-
echo "List of currently installed Linux kernels"
dpkg --list | grep linux-image | egrep '^[r,i]i' | cut -d" " -f3
;;
remove-
echo "List of currently installed Linux kernels"
dpkg --list | grep linux-image | egrep '^[r,i]i' | cut -d" " -f3
echo "Please enter kernel package to uninstall from your pc (for example: linux-image-
read KERNELVERSION
apt-cache search $KERNELVERSION|cut -d" " -f1|xargs sudo apt-get remove -y
;;
remove-
echo "Will now purge all the following kernel packages:"
dpkg -l 'linux-*' | grep -v libc| sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*
dpkg -l 'linux-*' | grep -v libc| sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*
;;
quit)
exit
;;
esac
done
Revision history for this message
|
#5 |
Thanks Mark Rijckenberg, that solved my question.