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!

Subscribe
Share

You can try:

sudo apt-get update --fix-missing

sudo dpkg –configure -a

I dont know why im using old repos. I installed this droplet 2-3 months ago, choosed the Ubuntu 14.04, and go straight following this series called “Initial Server Setup with Ubuntu 14.04” and basic LAMP.

I dont remember touching any of the repositories stuffs

This comment has been deleted


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

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.

This question was answered by @nminhduc004:

You can try:

sudo apt-get update --fix-missing

sudo dpkg –configure -a

View the original comment

This question was answered by @nminhduc004:

You can try:

sudo apt-get update --fix-missing

sudo dpkg –configure -a

View the original comment