When the Ubuntu operating system is published, in order to reduce the size of the operating system, only the main system software, application software. 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 the update.
Internet Update (external network update)
A virtual machine or a physical machine that can surf the internet and update the software directly from the Internet.
Ubuntu default update source speed is not very fast. We are able to change the update source provided by 163 or Sohu .
We can do this through the graphical interface:
We are also able to 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. Change the update source
sudo gedit/etc/apt/sources.list(open Ubuntu 12.04 Source list file)
3. Replace the contents of "2, change update source " into 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
After you change the source file, when the system is updated. The local update source is selected.
The Ubuntu 12.04 Update source provides a number of other software update sources, please click here.
4, update the source (in the terminal knocking such as the following command)
sudo apt-get update
LAN update
In the company, generally do not choose the Internet update, due to the company's limited network resources , if the same time very many people are updating, it is very likely to lead to the company's network paralysis .
So. In a company, a server is typically built specifically. This server updates all the software (even if there are no updates.) This server is also easy to update regularly, after all, only one machine occupies network resources, and then, the company's employees to update the software through the server, such a way to update the local area network update-simple, rude.
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, change update source "inside the content replaced with the following content ." The content of the change is different. IP address for corporate 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 //Get a list of the latest packages, you must run this command after you have set up the update source.
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 right button "open in Terminal" tool, knocking at the terminal for example the following command:
sudo apt-get update//First time, first hit this. I don't need it later.
sudo apt-get install nautilus-open-terminal
After logging off the machine, on the desktop. You can see "Open in Terminal" by right-clicking the mouse.
Build and use--ubuntu Update settings for Linux development environment