Build and use--ubuntu Update settings for Linux development environment

Source: Internet
Author: User

when the Ubuntu operating system is released, it is only equipped with basic system software and application software to reduce the volume of the operating system. Most of the software that we need to use in our development needs to be updated from the Web.


If Ubuntu doesn't have a network, it can be said to be unable. Let's teach you how to use the Internet and Local area network for updates.


Internet Update (external network update)

A virtual machine or a physical machine that can be connected to the Internet, which can update the software directly from the Internet.


Ubuntu default update source speed is not fast, we can change to 163 or Sohu provided update source.


We can do this through the graphical interface:




We can also set through the command in the terminal:

1, first backup Ubuntu12.04 source list

sudo cp/etc/apt/sources.list/etc/apt/sources.list.backup (back up the current source list)


2. Modify the update source

sudo gedit/etc/apt/sources.list(open Ubuntu 12.04 Source list file)


3, the "2, modify the update source " Inside the content to replace the following content

163 Source:

Deb Http://mirrors.163.com/ubuntu/precise main RESTRICTEDDEB-SRC http://mirrors.163.com/ubuntu/precise main Restricteddeb http://mirrors.163.com/ubuntu/precise-updates main RESTRICTEDDEB-SRC http://mirrors.163.com/ubuntu/ Precise-updates main Restricteddeb http://mirrors.163.com/ubuntu/precise universedeb-src http://mirrors.163.com/ Ubuntu/precise universedeb http://mirrors.163.com/ubuntu/precise-updates universedeb-src http://mirrors.163.com/ Ubuntu/precise-updates universedeb http://mirrors.163.com/ubuntu/precise multiversedeb-src http://mirrors.163.com/ Ubuntu/precise multiversedeb http://mirrors.163.com/ubuntu/precise-updates multiversedeb-src/http Mirrors.163.com/ubuntu/precise-updates Multiversedeb Http://mirrors.163.com/ubuntu/precise-backports Main Restricted Universe multiversedeb-src http://mirrors.163.com/ubuntu/precise-backports main restricted universe Multiversedeb http://mirrors.163.com/ubuntu/precise-security main RESTRICTEDDEB-SRC Http://mirrors.163.com/ubUntu/precise-security main restricteddeb http://mirrors.163.com/ubuntu/precise-security UNIVERSEDEB-SRC/http Mirrors.163.com/ubuntu/precise-security Universedeb http://mirrors.163.com/ubuntu/precise-security MULTIVERSEDEB-SRC http://mirrors.163.com/ubuntu/precise-security Multiversedeb Http://extras.ubuntu.com/ubuntu Precise maindeb-src Http://extras.ubuntu.com/ubuntu Precise main

When the source file is changed, the local update source is selected when the system is updated.

The Ubuntu 12.04 Update source provides more software update sources, please click here.


4, update the source (in the terminal to knock the following command)

sudo apt-get update


LAN update

in the company, generally do not choose the Internet update, because the company's limited network resources , if the same time a lot of people are updating, it is likely to lead to the company's network paralysis . Therefore, in the company, usually set up a server, this server to all the software is updated well (even if not all updates, the server is also convenient to update regularly, after all, only one machine occupies network resources), and then, the company's employees update the software through this server, this way update is LAN Update-Simple, rough.


The Local Area network update setting method is the same as the Internet update setting (set by command).

Not the same place is 3, the "2, modify the update source " inside the content replaced with the following content ", the modified content is not the same, the IP address for the company server IP:



After setting up the local Area network update source, we can update the system and application using the graphical interface or the character interface.


Graphical interface:



Character interface (recommended):
sudo apt-get update //Gets a list of the latest packages that must be executed after the update source has been set up. Equivalent to " check " in graphical interface operation.
sudo apt-get install XXX//installing XXX software from the source
sudo apt-get remove XXX//delete package
sudo apt-get download xxx//Download the XXX Deb package from the source
sudo apt-get source xxx//Download the source code of XXX from sources package
sudo apt-get upgrade//update system files


The character interface updates the application instance:
Install the "Open in terminal" tool by right-clicking on the terminal and knocking at the following command:

sudo apt-get update//First-time update, first knock this, and then do not



sudo apt-get install nautilus-open-terminal



After you log off the machine, on the desktop, right-click the mouse to see "Open in Terminal."




Build and use--ubuntu Update settings for Linux development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.