美文网首页
R中安装httr出现的问题

R中安装httr出现的问题

作者: Akuooo | 来源:发表于2019-12-18 22:30 被阅读0次

    在做RNAseq时,安装BiomaRt出现了问题,参考了biomaRt包的安装,却又在安装httr的时候发现安装不了

    }httr}9IYY.png

    如图

    首先要感谢我的同学!!!一步一步带我解决!!感动!!!

    所以就

    $ cd /etc/apt
    #可能无法保存,所以需要获得root权限
    $ sudo vi sources.list
    # 把下面这一行添加到文件里,:wq保存
    $ deb https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu/ bionic-cran35/
    #如果下面的命令无法执行,就加一个sudo
    $ (sudo) apt-get install update
    $ (sudo) apt-get install r-base
    $ (sudo) apt-get r-base-dev
    
    $ sudo apt-get --purge remove r-base
    $ sudo apt-get --purge remove r-base-core
    $ sudo apt-get --purge remove r-base-dev
    $ sudo apt-get update
    

    出现如下提示

    Reading package lists... Done
    W: GPG error: https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu bionic-cran35/ InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 51716619E084DAB9
    E: The repository 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu bionic-cran35/ InRelease' is not signed.
    N: Updating from such a repository can't be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    
    $ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51716619E084DAB9
    #再次update
    $ sudo apt-get update
    

    出现如下代码

    Hit:1 http://cn.archive.ubuntu.com/ubuntu bionic InRelease
    Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
    Hit:3 http://cn.archive.ubuntu.com/ubuntu bionic-updates InRelease
    Get:4 http://cn.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
    Get:5 https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu bionic-cran35/ InRelease [3,626 B]
    Get:6 https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/linux/ubuntu bionic-cran35/ Packages [69.5 kB]
    Fetched 233 kB in 12s (19.4 kB/s)
    Reading package lists... Done
    
    $ sudo apt-get install r-base
    
    apt-get r-base.PNG
    $ sudo apt-get install r-base-core
    $ sudo apt-get install r-base-dev
    

    都出现了

    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
    

    按她说的,输入

    $ sudo apt autoremove
    

    然后就会出现

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
      cdbs debhelper dh-autoreconf dh-strip-nondeterminism dh-translations intltool jq libarchive-cpio-perl
      libfile-stripnondeterminism-perl libfile-which-perl libjq1 libmail-sendmail-perl libonig4 libsys-hostname-long-perl po-debconf
      python3-scour scour
    0 upgraded, 0 newly installed, 17 to remove and 18 not upgraded.
    After this operation, 4,046 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    (Reading database ... 167614 files and directories currently installed.)
    Removing cdbs (0.4.156ubuntu4) ...
    Removing dh-translations (138.18.04.1) ...
    Removing intltool (0.51.0-5ubuntu1) ...
    Removing jq (1.5+dfsg-2) ...
    Removing libarchive-cpio-perl (0.10-1) ...
    Removing libfile-which-perl (1.21-1) ...
    Removing libjq1:amd64 (1.5+dfsg-2) ...
    Removing libmail-sendmail-perl (0.80-1) ...
    Removing libonig4:amd64 (6.7.0-1) ...
    Removing libsys-hostname-long-perl (1.5-1) ...
    Removing scour (0.36-2) ...
    Removing python3-scour (0.36-2) ...
    Removing debhelper (11.1.6ubuntu2) ...
    Removing dh-strip-nondeterminism (0.040-1.1~build1) ...
    Removing libfile-stripnondeterminism-perl (0.040-1.1~build1) ...
    Removing po-debconf (1.0.20) ...
    Removing dh-autoreconf (17) ...
    Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
    Processing triggers for libc-bin (2.27-3ubuntu1) ...
    

    然后应该就可以继续了。我试一试。

    相关文章

      网友评论

          本文标题:R中安装httr出现的问题

          本文链接:https://www.haomeiwen.com/subject/qnlpnctx.html