ubuntu18.04 Rstudio-server无法连接服务器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu18.04 Rstudio-server无法连接服务器相关的知识,希望对你有一定的参考价值。

参考技术A 无法连接服务器有以下几个原因:

没有配置文件

防火墙8787端口没有打开

Linux下登陆账户没有home文件夹,比如test1账户应该有/home/test1/文件夹

R版本和Rstudio或者Rstudio-server版本不一致。例如R为i386-版本,Rstudio/Rstudio-server为amd64版本,Rstudio-server在启动后,虽然可以通过8787端口登陆,输入账户和用户名,但是无法连接服务器,可以通过卸载i386版本,再安装amd64版本的R基础包。重新启动Rstudio-server即可

ps:可以尝试运行/usr/lib/rstudio-server/bin/rsession或者rsever,看下报错信息

ubuntu10.10无法更新

W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/source/Sources.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 500 Internal Server Error
, W:Failed to fetch http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/binary-i386/Packages.gz 500 Internal Server Error
, E:Some index files failed to download, they have been ignored, or old ones used instead.
弹出 检查Internet连接
而且在安装是勾了跟新语言包也没有跟新
求教

手动更换apt-get的源列表配置

修改/etc/apt/sources.list文件内容为如下内容即可正常更新。

## Major bug fix updates produced after the final release of the
## distribution.

参考技术A 我的也出现了这个问题。网络连接完全没有问题,我想是不是服务器的问题啊。下面是我的出错信息:
错误 http://cn.archive.ubuntu.com maverick/main Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/restricted Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/universe Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/multiverse Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/main i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/restricted i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/universe i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick/multiverse i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/main Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/restricted Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/universe Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/multiverse Sources
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/main i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/restricted i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/universe i386 Packages
500 Internal Server Error
错误 http://cn.archive.ubuntu.com maverick-updates/multiverse i386 Packages
500 Internal Server Error
W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/main/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/restricted/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/universe/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick/multiverse/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/source/Sources.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/main/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/restricted/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/universe/binary-i386/Packages.gz 500 Internal Server Error

W: 无法下载 http://cn.archive.ubuntu.com/ubuntu/dists/maverick-updates/multiverse/binary-i386/Packages.gz 500 Internal Server Error

E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
OK了!!我修改了源,让它选择最佳下载服务器。我的是:http://ubuntu.srt.cn/ubuntu本回答被提问者采纳
参考技术B 首先你要判断你的计算机是否接入网络。能否打开例如www.baidu.com的网站。
如果不能上网当然就会出现“检测internet连接”的提示。
如果连不上网,什么都下载不下来再怎么更新也都是无效的。
所谓的500错误是不可恢复的网络连接。楼主还是先检查看看计算机是不是能上网再说吧。
如果能上网,那就到网上搜索 ubuntu 10.10 更新源 的关键词。网上有大量的更新教材可查。
参考技术C 源的问题,换个源吧,最好是用台湾源,比其它的源要快要新,而且速度也很快,一般我选台湾源里的前三个,速度都不错。 参考技术D 换个源试试

以上是关于ubuntu18.04 Rstudio-server无法连接服务器的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu18.04网络管理

Ubuntu18.04安装教程

docker:ubuntu18.04 配置phalcon3.4环境

用virtualbox安装Ubuntu18.04虚拟机

Ubuntu18.04 安装OpenCV

ubuntu18.04下载地址