Q1: 软件安装不上?
A: 使用sudo apt-get update命令,更新软件列表
Q2:软件下载不下来?
A:ubuntu默认使用国外的源,速度慢,不稳定,可以换用国内的源来替代
阿里云,操作方法
1. sudo vim /etc/apt/sources.list(或者sudo gedit /etc/apt/sources.list)
2. 删除所有文件并粘贴以下内容
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
Q3:ssh连接失败
A:首次安装ubuntu时,不允许通过ssh进行远程访问,需要先启用ssh,方法如下:
sudo apt-get install openssh-server
安装完成后通过命令
sudo systemctl status ssh
检查是否已经正常运行
Q4:怎么获取当前的IP地址?
A:通过命令
ifconfig
来查看本机IP地址
Q5: VIM不能使用怎么办?
A: vim使用之前应该先进行安装,安装命令
sudo apt-get install vim
Q6: 系统默认只有python2.7版本,怎么安装Python3?
A: 使用命令
sudo apt-get install python3
安装,使用命令
python3 --version
来查看软件版本
Q7:怎么安装pip?
A: python2使用命令
sudo apt-get install python-pip
安装,使用命令
pip --version
查验是否安装成功
python3使用命令
sudo apt-get install python3-pip
安装,使用命令
pip3 --version
查验是否安装成功