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?

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

Editors' Recommendations

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…
Best Samsung Galaxy deals: S24, Buds, Watches and more
The Galaxy Z Fold 4's Cover Screen.

Samsung’s Galaxy lineup is made up of several different types of devices, and if you’re in the market for some savings, you’ll often find Samsung Galaxy tech among the best headphone deals, the best smartwatch deals, the best tablet deals, and the best phone deals. With so many different devices among the Galaxy lineup, and with so many Samsung Galaxy deals out there for the picking, we rounded up what we feel are the best Samsung Galaxy deals to shop right now. Reading onward you’ll find discounts on some of the best tablets, best smartwatches, and best wireless earbuds the Samsung Galaxy lineup has to offer, as well as some impressive discounts on Galaxy phones.
Samsung Galaxy Buds 2 -- $97, was $150

If you're looking for headphone deals but you want an alternative to Apple's AirPods, you should consider the Samsung Galaxy Buds 2. The wireless earbuds have great battery life that's made even better with an included charging case. While some of the other Galaxy Buds out there include the Galaxy Buds Live, Galaxy Buds Pro, and Galaxy Buds+, but with the Galaxy Buds 2's active noise-cancelation you can block out unwanted sounds and keep your focus on whatever you’re working on, watching, or listening to. You can also control the headphones with touch controls on each earbud, and they connect easily to any Bluetooth device.

Read more
Best Microsoft Office deals: Get Word, PowerPoint, and Excel for free
Students using Microsoft Office software on their laptops outside.

While the fight of Microsoft vs Google when it comes to office apps might be never-ending, if you're the sort of person who prefers dealing with Microsoft, you'll be happy to know that there are quite a few good deals you can take advantage of. As you may know, most of Microsoft's apps have gone under one rather expensive subscription service, Microsoft 365, but you can still get older parts of the suite for relatively good prices. In fact, you can even get a free trial of Microsoft Word to test it out, although you'd still need to pay to get the full suite of tools.
Best Microsoft Office deals
Microsoft Office is a pay once, receive once service. You don't have to pay recurring monthly fees to use it, but the software also never updates. For what it's worth, the Microsoft Office packages are labelled "2021", so they're all fairly recent but also ripe for a good deal. With the exception of AI integrations, not much has really changed in the past couple of years when it comes to your basic document creation and these programs should continue to be effective for years to come. Depending on what package you get, you'll get access to different apps, based on the needs of the target audience. For example, Microsoft Office Home & Student 2021 keeps it lean and cool and with Microsoft Word, Microsoft Excel, and Microsoft PowerPoint being the only apps included.

Here are our favorite deals for the classic Microsoft Office experience:

Read more
Best refurbished MacBook deals: Get a MacBook Air for $140 and more
A stack of MacBooks is pictured from the top down.

Apple is one of the best laptop brands, and that's not surprising, given that various types of MacBooks regularly top the list of best laptops on the market. Unfortunately, sitting at the top does also mean that they are quite expensive, so fi you want to get your hands on one without paying an arm and a leg, going for a refurbished model is the way to go about it. Luckily, most MacBooks you'll find tend to be under warranty or have relatively good return windows, so even if there is a fault somewhere, you can return it and get a replacement or your money back.

To help you pick the best MacBook for your budget, we've gone out and picked some of the best refurbished MacBook deals we could find and compiled them below. That said, if you still don't want to go for a refurbished one, you could always check out these great MacBook deals as well.
MacBook Air 11.6-inch (2015) -- from $112

Read more