ubuntu install the update command

ubuntu16.04LTS

  1. Ubuntu into the system, a terminal open, as shown in FIG. At this time, log in as a normal user.

    ubuntu ubuntu system using the command update
  2. Since the update the system will need administrator privileges, so either use "su -" to switch directly to the root user before updating. You can also use sudo to temporarily gain administrative privileges to be updated. Here the second approach.

  3. Enter sudo apt update, below the 16.04 version of ubuntu enter sudo apt-get update, and then enter the user's password.

    ubuntu ubuntu system using the command update
  4. When prompted, you can see which software can be updated: apt list --upgradable

    ubuntu ubuntu system using the command update
    ubuntu ubuntu system using the command update
  5. Then sudo apt upgrade update operation. This step, depending on your network status and the number of software needs to be updated, the time spent is different.

    ubuntu ubuntu system using the command update
    ubuntu ubuntu system using the command update
    ubuntu ubuntu system using the command update
  6. Generally speaking. After the update is complete there will be some unwanted old components need to be cleared. Use this time

    sudo apt autoremove to complete the cleanup.

    As can be seen from the figure, this upgrade did not want to clean up the old components.

    ubuntu ubuntu system using the command update
    END

Precautions

 
  • If you use the system ubuntu16.04 below, all of the above modifications are apt to apt-get

Guess you like

Origin www.cnblogs.com/h-c-g/p/11099592.html