ubuntu内核编译——libncurses5-dev安装——踩坑合集

libncurses5-dev安装——踩坑合集

先来吐槽一下,原本的ubuntu16.04编译安装新内核,新内核编译完,安装的时候空间不够了,折腾了小半天重新安装了一个ubuntu18.04。在这里踩了个大坑就是国外的源(第一次安装的时候很快所以这次没注意),和国外这些说拜拜。

进入正题,安装完成18.04后发现kernel-package安装非常慢,但是update速度还可以,蜜汁自信挂了2个小时,等不下去了,换了阿里源,这个可以了。

阿里源
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

下面libncurses5-dev,踩坑,来给大家看看。
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第1张图片
上面报错的三个依赖,每个尝试安装都是下面这样的:
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第2张图片
给大家瞅瞅解决方案,ubuntu官网,命令行不行,那再试试手动下载
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第3张图片
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第4张图片
下载完成后直接双击安装了,直接告诉大家,这些做完之后,运行下面的代码:sudo apt-get install libncurses5-dev还是最开始的结果。
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第5张图片
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第6张图片
最后解决方案,换源,换清华源

清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

安装完成,内核编译的准备工作做完了。
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第7张图片
PS:第一天ubuntu16.04内核编译过程顺利,但是安装时空间不足,第二天ubuntu18.04空间充足,踩坑良多。
ubuntu内核编译——libncurses5-dev安装——踩坑合集_第8张图片

你可能感兴趣的:(ubuntu内核编译——libncurses5-dev安装——踩坑合集)