Question

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

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!

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @nminhduc004:

You can try:

sudo apt-get update --fix-missing

sudo dpkg –configure -a

View the original comment