ric
By:
ric

sudo apt-get update failed (E: Sub-process returned an error code)

March 20, 2015 1.7k views
Linux Basics Linux Commands

Hi, im using ubuntu 14, logged in and trying to perform 'sudo apt-get update', but it failed and gave me this error

Ign http://mirrors.digitalocean.com trusty InRelease
Ign http://download.webmin.com sarge InRelease
Ign http://webmin.mirror.somersettechsolutions.co.uk sarge InRelease
Ign http://mirrors.digitalocean.com trusty-updates InRelease
Ign http://security.ubuntu.com trusty-security InRelease
**snip**
Ign http://mirrors.digitalocean.com trusty/main Translation-en_US
Ign http://mirrors.digitalocean.com trusty/multiverse Translation-en_US
Ign http://mirrors.digitalocean.com trusty/restricted Translation-en_US
Ign http://mirrors.digitalocean.com trusty/universe Translation-en_US
Fetched 792 kB in 14s (54.4 kB/s)
Killed
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code

Tried again, and got the same error

Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Ign http://download.webmin.com sarge/contrib Translation-en_US
Ign http://download.webmin.com sarge/contrib Translation-en
Fetched 1,819 kB in 6s (286 kB/s)
Killed
E: Problem executing scripts APT::Update::Post-Invoke-Success 'test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i'
E: Sub-process returned an error code

Can anyone tell me what might have caused this?

thanks!

2 comments
1 Answer

This question was answered by @nminhduc004:

You can try:

sudo apt-get update --fix-missing

sudo dpkg –configure -a

View the original comment

Have another answer? Share your knowledge.