apt-get update ending in Problem executing scripts APT::Update::Post-Invoke-Success

Hello, I have recently added node sources to my Ubuntu 14.04 droplet (the LEMP package) and today when trying to run apt-get update I’m getting following error message:

Ign newrelic/non-free Translation-en
Get:5 trusty/main Translation-en_US
Hit trusty-security/universe Translation-en
Ign trusty/main Translation-en_US
Ign trusty/main Translation-en
Fetched 6,413 B in 4s (1,566 B/s)
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

The package list seems to be read but at the end there’s this error. The only sensible solution I found googling is to remove apt-show-versions package if I don’t use it. I haven’t done that yet, hoping I would find another solution.

Thanks in advance.

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.

What’s the memory usage on the droplet look like? My first guess would be that apt-show-versions is running out of memory while initializing its cache based on:

** initializing cache. This may take a while **

If you haven’t done so yet, try adding a swap file.

It’s a bug in apt-show-versions, which is apparently fixed in the next version (0.22.9) - check out

Im having a similar behaviour:

Suddenly im having issues with my apt upgrade

Excuting: apt-update & apt-upgrade -y I'm getting this error:

Max. recursion depth with nested structures exceeded at /usr/local/lib/perl/5.18.2/ line 278, at /usr/bin/apt-show-versions line 271.
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

I reinstalled apt-show-versions I upgraded CPAN modules