1

While running sudo apt-get update, command gives below error on linux mint 18.2 Cinnamon 32-bit:

/usr/bin/apt-get: 1: /usr/bin/apt-get: ELF: not found
/usr/bin/apt-get: 1: /usr/bin/apt-get: Syntax error: Unterminated quoted string
2

Your apt-get binary somehow got corrupted (“ELF” is part of the ELF signature but your kernel isn’t recognising it as such, so your shell is trying to run it as a script). You need to reinstall it:

wget https://launchpad.net/ubuntu/+source/apt/1.2.26/+build/14435269/+files/apt_1.2.26_i386.deb
sudo dpkg -i apt_1.2.26_i386.deb
  • Thanks Stephen! This is very helpful for me. This saved my time. – Rahul Mankar May 8 '18 at 17:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.