Connection failed [IP: 185.125.190.36 80]
ubuntu安装R遇到如下问题:
root@DESKTOP-1N42TVH:/home/test2# apt install r-base-core
1、系统内核
root@DESKTOP-1N42TVH:/home/test2# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.4 LTS Release: 20.04 Codename: focal
2、备份源
root@DESKTOP-1N42TVH:/home/test2# mv /etc/apt/sources.list /etc/apt/sources.list_bak
3、更新源
root@DESKTOP-1N42TVH:/home/test2# vim /etc/apt/sources.list deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
4、更新
root@DESKTOP-1N42TVH:/home/test2# apt update
5、测试
root@DESKTOP-1N42TVH:/home/test2# apt install r-base-core
没有问题。
测试R:
没有问题。