Elementary OS Juno was simply launched, and it got here with a whole lot of fixes, new options, and software program updates. One factor it didn’t include, nonetheless, was a method to upgrade to Elementary OS Juno from an older launch with out reformatting your total pc.

In the event you’re trying to get the most recent Elementary OS launch going however don’t need to undergo the trouble of re-downloading and re-formatting, we might help! Comply with alongside and be taught you are able to do an in-place upgrade in your Elementary OS PC!

Warning

The builders don’t help the upgrade technique we cowl within the tutorial. Comply with this information at your individual threat!

Earlier than making an attempt to do the upgrade from Elementary OS Loki to Juno, please make an entire backup in your system!

Getting ready for the upgrade

Elementary OS is an Ubuntu-based working system, so we’ll want to comply with the normal Ubuntu distribution upgrade course of. Press Ctrl + Alt + F1 and open up the TTY terminal interface. Then, comply with the steps beneath to put together your system for the upgrade to the most recent model of Elementary OS.

Step 1: On the TTY shell display screen, you’ll discover one thing that claims “login.” Kind in your username and password. It ought to immediately provide you with a fullscreen terminal session.

Step 2: On this information, we’ll be interacting with root instructions so much. Because of this, it’s a good suggestion to transfer the TTY shell out of your person to the basis account. We are able to achieve root within the Elementary OS TTY Shell with sudo -s.

sudo -s

Step 3: Now that you simply’ve bought root entry, you will need to flip off the LightDM login system and the Pantheon desktop atmosphere. If you don’t, the upgrade might fail and break your total system.

To disable the LightDM login system, use systemctl.

systemctl cease lightdm.service

Step 4: LightDM is shut off. Now it’s time to set up any pending updates to the present launch we’re on with the apt replace and apt upgrade instructions.

apt replace
apt upgrade -y

Step 5: Now that the software program for the model of Elementary OS that you’re at present operating is up to date, we should run the dist-upgrade command. This command will additional set up software program updates and be certain that the present OS is at it’s latest potential launch.

apt dist-upgrade

Step 6: We’ve put in the most recent packages to Elementary Loki. Now we should test the system for issues and ensure the upgrades went nicely. Bundle issues can simply be detected with dpkg -C

dpkg -C

Learn the output of the dpkg command. 99% of the time, the system needs to be wonderful. If for some motive your PC has package deal points, learn the data on the display screen and learn the way to resolve the issues.
Step 7: The final step within the preparation course of is to test if Elementary OS has any held-back packages. Held-back packages can break issues when the upgrade is full, so use the showhold command and ensure your system doesn’t have any.

apt-mark showhold

Upgrade to Elementary OS Juno

After going via the steps above, your Elementary OS PC (operating model 4) is prepared to begin the upgrade course of to the most recent launch.

Step one in any upgrade on working methods that makes use of Ubuntu as a base is to modify the software program sources and alter them from the previous to new.

Elementary OS Juno makes use of Ubuntu 18.04 LTS because it’s base, so we should change every part over to 18.04.

sed -i 's/xenial/bionic/g' /and so on/apt/sources.listing

The software program sources for Elementary OS have been modified from Ubuntu 16.04 to Ubuntu 18.04. We should now modify the official Elementary software program sources, and alter them from 16.04 to 18.04 as nicely.

sed -i 's/xenial/bionic/g' /and so on/apt/sources.listing.d/appcenter.listing
sed -i 's/xenial/bionic/g' /and so on/apt/sources.listing.d/elementary.listing
sed -i 's/xenial/bionic/g' /and so on/apt/sources.listing.d/patches.listing

After altering all the software program sources, Elementary OS’ software program index should be refreshed to replicate the modifications. Within the TTY console, run the replace command.

sudo apt replace

Earlier than we upgrade from Loki to the brand new Juno launch, we want to run a take a look at to be sure that the method will go easily. To check the upgrade use simulate with the upgrade command.

apt --simulate upgrade

Assuming the simulation goes easily, it’s time to do the upgrade for actual. Within the TTY console, use the upgrade command and set up the brand new Juno software program packages.

sudo apt upgrade -y

End off the upgrade course of with the dist-upgrade command.

sudo apt dist-upgrade -y

When the upgrade to Elementary OS Juno is full, reboot your PC!

Publish-installation

The upgrade course of from Loki to Juno is full. Nonetheless, there are nonetheless a couple of issues to do earlier than you need to use your system accurately. The very first thing to do is to uninstall any previous Elementary OS packages from the final launch utilizing the autoremove command.

sudo apt autoremove

Perl modules

In accordance to some customers who’ve tried this technique of upgrading to Juno, the Perl-modules package deal might battle with an older model. Repair the issue with:

sudo apt take away perl-modules-5.22

Get better GPG keys

We upgraded from Loki to Juno by altering some issues round. In consequence, we should set up the important thing for the software program sources. Comply with the steps beneath to get it performed.

Step 1: Utilizing the apt-key command, obtain the Elementary OS key from the web.

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A74F73EFFE70B91C

Step 2: Now that the secret’s put in, refresh Juno’s software program sources to replicate the modifications.

sudo apt replace

If the important thing was recovered, the replace command ought to work with out error, and also you’ll have the ability to get pleasure from your new Elementary OS Juno PC!



Source link

Share.
Leave A Reply

Exit mobile version