banner



How To Update Baseband Version I337 Nj4 To The Newest Version

It was a long-winded process for me as a newbie when I tried to install python 3.viii on my figurer. I am sharing my experience nigh what worked while installing, changing default versions and fixing the last that temporarily stopped working.

How to install Python 3.eight on Ubuntu xvi.04?

Step 1: APT automates the retrieval, configuration and installation of software packages. Type these ii commands in your final and hit enter each time.

          sudo apt update          sudo apt install software-backdrop-common        

Step two: PPA (Personal Package Archive) are used to add together a software to your Ubuntu. They cutting downwards on time taken to install the software from the original source. PPA is an easy way to update a plan via someone, in this case I am using deadsnakes PPA. Blazon the following control and hit enter.

          sudo add-apt-repository ppa:deadsnakes/ppa        

Pace iii: In one case information technology is enabled, install Python 3.8 by typing the following command.

          sudo apt install python3.8        

Step 4: Check the version by the following command. Your computer volition display the new installed python version.

          python3.eight --version        

Python is installed. Merely wait! You are not washed however.

How to update default Python version on Ubuntu?

After installing new version of python three.8, yous will notice that if you type python in your terminal, it will yet show you the old version of python. This means that you must make the following changes to allow the computer to be able to use new installed python version. Here are the steps that I took and they worked for me:

Pace 1: To view the dissimilar versions on your computer:

          ls /usr/bin/python*        

Command displays all the versions of python on my computer

Step 2: Copy the version you want. I my case, I copied /usr/bin/python3.eight

Step3: Get to Home and type Shift+H to view hidden files

Home Screen displaying hidden files.

Step 4: Open .barshrc file and coil to the finish. Paste the copied python version on the last line. This is how it looks: allonym python = "usr/bin/python3.8".

Pace five: Close the final and open information technology once again. Information technology is important to close the last to come across the applied changes. Type the following command

          python        

You volition come across the default python as the new version .

default version of Python is now python3.viii.3

Another mode to update Python versions on Ubuntu.

This did not piece of work for me. But might work for you.

Pace 1: Install Python3.8. every bit mentioned above.

Step two: Blazon the following commands. On the starting time line use your previous version(in my instance its python3.five) and gear up the priority number to one. On the second line employ the new installed python version and ready the priority to 2. According to Ubuntu <priority> is an integer; options with higher numbers have college priority in automated fashion.

          sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 1          sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.viii two        

Step 3:

sudo update-alternatives --config python3

Pace 4:

          python3 --v          Y'all must get            
Python iii.eight.3

How to fix the cleaved terminal?

So while changing the default version of python, I accidentally typed the wrong version numbers of python in the terminal and went ahead with the changes. Somehow this stopped the concluding and I was no longer able to open the concluding. I tried CTRL+ALT+T as well every bit restarting the computer but the last window did not open up.

I resolved it by finding this solution online here (https://askubuntu.com/questions/1086509/ubuntu-18-terminal-not-opening):

  1. Press Ctrl+Alt+F1 to open xterm. XTERM is a final emulator for the Ten Window System. Information technology comes with Ubuntu besides.
  2. Enter username.
  3. Enter countersign.
  4. Blazon this control:
          sudo update-alternatives --config python3        

5. Select option 1.

vi. At last type Ctrl+Alt+F7 to return to GUI

My terminal was up and running once more.

If you find these guidelines useful, exercise let me know in the comments below. Take fun learning!

Source: https://medium.com/analytics-vidhya/installing-python-3-8-3-66701d3db134

Posted by: wrighttomentioun38.blogspot.com

0 Response to "How To Update Baseband Version I337 Nj4 To The Newest Version"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel