Summary of ubuntu usage

source##

System source###

The system source will involve the speed of downloading software on the terminal, and it is often necessary to replace it with a domestic source. Such as Tsinghua University, Aliyun, etc.

1、 Back up the original source

sudo chmod 777/etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.backup

2、 Modify source

sudo gedit /etc/apt/sources.list

A box will pop up. Delete the content inside and replace it with the following content

Ali Cloud

# deb package
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
## Beta source
deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
# Source code
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse  
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse  
## Beta source
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse  
# Canonical partners and add-ons
deb http://archive.canonical.com/ubuntu/ xenial partner  
deb http://extras.ubuntu.com/ubuntu/ xenial main

Tsinghua source: https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/

After replacing, click Save to close the file. Update the source, let the source take effect

sudo apt-get update

Replace python pip source###

1、 Generate pip configuration file

mkdir ~/.pip
sudo gedit ~/.pip/pip.conf

Delete the content in the pop-up window and write:

[ global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[ install]
trusted-host=mirrors.aliyun.com

Click Keep, the key file, the replacement source is completed.

Version dependency issues##

Errors are often reported when installing packages, such as

sudo apt-get install libpython2.7-stdlib=2.7.12-1ubuntu0-16.04.3

Keep searching like this, install the layers of dependent packages, and finally install the packages we need to install.

sudo aptitude install libprotobuf-dev

Uninstall##

sudo apt-get autoremove python3.4

Different versions of ubuntu

http://old-releases.ubuntu.com/releases/

To be continued

Recommended Posts

Summary of ubuntu usage
Summary of various ubuntu problems
ubuntu16.04 security summary-01
Summary: Ubuntu Python2.x and
Summary of methods to use Evernote under Ubuntu 14.04
ubuntu adjusts the priority of swap swap space usage
Summary of Ubuntu system and privacy cleaning tools
Installation of pulseaudio and API usage under Ubuntu 12.04
Python advanced usage summary
3D effect of ubuntu
Installation and usage instructions of rz/sz command under ubuntu
Python high-order function usage summary!
Use of Anaconda in Ubuntu
ufw of ubuntu firewall rules
Use of mediawiki under ubuntu
Initial setup of Ubuntu 16.04 server
Python high-order function usage summary!
The usage of wheel in python
Summary of logarithm method in Python
Happy installation of Jenkins in ubuntu
Analysis of usage examples of Python yield
Installation of deb package under Ubuntu
Overview of the Ubuntu file system
[Linux] Some high-efficiency tools of Ubuntu
Detailed usage of dictionary in Python
A summary of 200 Python standard libraries!
Simple usage of python definition class
Summary of Python calling private attributes
Python decorator simple usage example summary
Installation of Docker CE under Ubuntu
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
The usage of tuples in python
ubuntu Docker installation and deployment of Rancher
Concise summary of Ceph deployment on Centos7
The usage of Ajax in Python3 crawler
Installation and uninstallation of CUDA under Ubuntu 16.04
Install docker on ubuntu and basic usage
Comprehensive summary of Python built-in exception types
The apt-get command of Ubuntu basic tutorial
The implementation of the Ubuntu18.04 installation Pycharm tutorial
Installation and use of Win10 subsystem Ubuntu
Summary of common operations of Python time module
Summary of knowledge points about Python unpacking
Detailed usage of Python virtual environment venv