记录自己一次ubuntu操作@TOC
解决ubuntu-ppa问题(apt-get update)、图形界面问题
ppa问题(apt-get update)
出现的错误包括:E: The repository ‘http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
- 解决方案:删除 /etc/apt/sources.list.d 文件夹下的.list 及 .list.date 文件(此文件夹下为第三方软件的更新源,我直接删除之后 mkdir sources.list.d)
- 之后更换国内源,可以正常 apt-get update
软件安装依赖问题
出现的错误为:apt-get install 提示缺少依赖
- 解决方案:
1.安装aptitude
sudo apt-get install aptitude
2.利用aptitude来安装
sudo aptitude install python-dev
aptitude与apt-get的区别和联系
aptitude与apt-get都是Debian及其衍生系统中的包管理工具。aptitude在处理包依赖问题上更好。