Skip to main content

How to update Ubuntu to plug the Heartbleed OpenSSL flaw

how to update ubuntu plug heartbleed openssl flaw
Image used with permission by copyright holder

The Heartbleed OpenSSL bug is unlike virtually any Internet security threat you’ve probably ever heard of. It’s not a virus that’s specific to one operating system or type of device. Since it revolves around a flaw in the method of encryption used by many of the world’s websites, it affects almost everyone who uses the Internet, including people who operate servers that run Ubuntu Linux, the free, open-source operating system.

MORE: Which websites are affected by the Heartbleed OpenSSL encryption bug?

Recommended Videos

Fortunately, with the help of a few commands, you can check whether the version of Ubuntu you’re using is vulnerable to the Heartbleed bug, and also update Ubuntu to ensure that the vulnerability is sealed and patched. It’s important to note that multiple versions of Ubuntu are affected, including Ubuntu 12.04 LTS, Ubuntu 12.10, and Ubuntu 13.10, so it’s imperative that you ensure that the version you run is safe — or update to one that is. Here’s how, according to ansoncheunghk.info.

  1. First, run this command: # sudo openssl version -a. What’s important here is the line that starts with “built on,” which gives you a date for the version of Ubuntu you’re running on your server. If you’re using a version dated before April 7, it is vulnerable to the Heartbleed bug. If it’s dated on or after April 7, you’re in the clear. Here’s what to do if you aren’t, like the the version pictured below, which is dated June 4, 2013.
ubuntu command 1
Image used with permission by copyright holder

           2. Run this command: # sudo apt-get dist-upgrade. This will patch your version of Ubuntu with the latest security update.

ubuntu command 2
Image used with permission by copyright holder

              3. Then restart your Ubuntu server using this command: # sudo reboot. Once reboot is complete, use the same command you used in Step 1 to verify that your Ubuntu install is dated for April 7 or later by checking the line that begins with “built on.”

ubuntu command 3
Image used with permission by copyright holder

Do you have any other tips for how to make Ubuntu safe from the Heartbleed bug? If so, please share them in the comments below.

MORE: How to check if a website is vulnerable to the Heartbleed bug

Image credit: http://www.themebin.com

Body image credits: http://www.ansoncheunghk.info

Konrad Krawczyk
Former Digital Trends Contributor
Konrad covers desktops, laptops, tablets, sports tech and subjects in between for Digital Trends. Prior to joining DT, he…
Google may finally bring back the Pixelbook, but not how you think
google pixelbook i7 price cut amazon

One of Google’s upcoming big projects could be a high-end laptop slated to be the next rival of the MacBook Pro.

An internal email obtained by Android Headlines detailed that Google has greenlit a project for a device codenamed “Snowy.” The email suggests the device is a laptop with premium specifications similar to the Dell XPS, Microsoft Surface Laptop, the Samsung Galaxy Chromebook, and the brand’s largest competitor, Apple’s MacBook Pro. With the project past the concept phase, it would likely be quickly expanded into a viable product under the Pixel line.

Read more
Best early Black Friday deals under $100: Amazon Echo, TVs, headphones and more
The Amazon Echo Pop on a desk.

Update 11/19/24: Black Friday is still over a week away, but you can already start your shopping with the Black Friday deals under $100 that we've gathered here. There's a possibility that these affordable items get even bigger discounts when the sale officially launches, but we won't blame you if you're already tempted by today's prices.

Black Friday will start on November 29, but if you've already got the itch to shop, check out the early Black Friday deals under $100 that we've gathered here. The offers cover smart home devices, laptops, TVs, kitchen gadgets, and so much more, so if you want to start enjoying discounts without blowing your entire budget for the shopping event, take a look at our favorite bargains below.

Read more
Understandably, Stalker 2 is a bit of a mess on PC
Key art for Stalker 2. A character in a lit-up gas mask and a gun on their back.

Stalker 2 is one of those games I never thought would actually release. Originally announced 14 years ago, the project was shelved after developer GSC Game World closed its doors, only to be reignited in 2018. Then, as the originally announced 2022 release of the game approached, Ukraine, where the developer was based, was invaded by Russia.

There are plenty of games that suffer in development hell, but they pale in comparison to the struggles Stalker 2 has gone through. The fact that the game is even here is nothing short of a miracle. Like other titles stuck in development hell, though, Stalker 2 is far from perfect, particularly when it comes to PC performance.

Read more