1

Last month I manually patched bash on a server running ubuntu 11.10 for the shellshock bug, as suggested in the comments here: What is the CVE-2014-6271 bash vulnerability (Shellshock) and how do I fix it?. I've now done a release-upgrade to 12.04 which is supported. How should I uninstall the patch and restore bash to be apt maintained?

edit:

running make uninstall on the patch did the job, thanks @muru for the suggestion

Matt South
  • 11
  • 2

1 Answers1

0

Check if bash is at the newest available version with:

[romano:~/etc] % apt-cache policy bash
bash:
  Installed: 4.3-7ubuntu1.4
  Candidate: 4.3-7ubuntu1.4
  Version table:
 *** 4.3-7ubuntu1.4 0
        500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
        100 /var/lib/dpkg/status
     4.3-6ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages

If not, you probably held(1) it; to unhold:

[romano:~/etc] % sudo apt-mark unhold bash

and then the normal apt-get update; apt-get dist-upgrade should give you a completely up-to-date system.

BTW, to see a list of held packages, the incantation is:

dpkg --get-selections | grep hold

Footnotes:

(1) "Holding" a package means asking the package system to refuse to upgrade it to newer versions.

Rmano
  • 32,167