【2021 04 25 更新】大家可以多留意一下评论区哈,感觉评论区说的干货比这篇文章多(笑哭),这篇文章是大学那会儿随手记的,没想到浏览的人还挺多,如果评论区有解决自己的问题,请将该评论点个赞哦~感谢
Ubuntu中yum的安装
冷静,calm down(重要的一步)
问题的转化
#添加阿里源 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 https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
163源:
#163源 deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
回到上级问题
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
然后,打开你的默认的源的文件
sudo gedit /etc/apt/sources.list
sudo apt-get update
更新的时候如果有一些源更新不了,可以再次使用gedit /etc/apt/sources.list,打开这个文件,把更新不了的源删掉,重新更新就可以。
最初的需求
最后我们最开始的需求是,安装yum
sudo apt-get install yum
中间暂停的地方填上y,等待,就会完成了
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/233762.html原文链接:https://javaforall.net