Linux下安装社区版服务器,运行网站给的脚本报错 E: 无法定位软件包 openjdk-8-jre

root@seafile-ProLiant-DL380-G4:~# bash seafile-server-ubuntu-16-04-amd64-http 6.0.7

This script installs the community edition of the Seafile Server on a Ubuntu 16.04 (Xenial) 64bit

  • Newest Seafile server version, MariaDB, Memcached, NGINX -

This installer is meant to run on a freshly installed machine
only. If you run it on a production server things can and
probably will go terrible wrong and you will loose valuable
data!

For questions or suggestions please contact us at
support@seafile.com


Possible options:
1 = Seafile Community (Free) Edition (CE)
2 = Seafile Professional Edition (PRO)

  1. CE
  2. PRO
  3. ABORT
    Which Seafile version would you like to install? 1

This script will install Seafile Community Edition for you.

忽略:1 http://mirrors.163.com/ubuntu trusty InRelease
命中:2 http://archive.ubuntukylin.com:10006/ubuntukylin trusty InRelease
获取:3 http://mirrors.163.com/ubuntu trusty-security InRelease [65.9 kB]
命中:4 http://mirrors.163.com/ubuntu trusty-updates InRelease
命中:5 http://mirrors.163.com/ubuntu trusty-proposed InRelease
命中:6 http://mirrors.163.com/ubuntu trusty-backports InRelease
命中:7 http://mirrors.163.com/ubuntu trusty Release
获取:9 http://archive.canonical.com lucid InRelease [8,460 B]
获取:10 http://101.96.8.165/archive.canonical.com lucid/partner amd64 Packages [14.0 kB]
获取:11 http://archive.canonical.com lucid/partner i386 Packages [14.6 kB]
已下载 103 kB,耗时 12秒 (7,989 B/s)
正在读取软件包列表… 完成
W: http://archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/InRelease: 密钥 6CE35A4EBAB676094476BE7CD259B7555E1D3C58 生成的数字签名使用了弱安全性摘要算法(SHA1)
W: http://archive.canonical.com/dists/lucid/InRelease: 密钥 630239CC130E1A7FD81A27B140976EAF437D05B5 生成的数字签名使用了弱安全性摘要算法(SHA1)
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
E: 无法定位软件包 openjdk-8-jre

是源的问题吗,请问需要配什么源?

你配置官方的源试一下。或者修改安装脚本,把这个依赖去掉。

大神你好,我是Linux新手,你说的官方源是指下载openjdk-8-jre的官方源吗?在网上查了很久也没有一个明确能下到这个的源。能否给一个?敬礼!

你把 seafile-server-ubuntu-16-04-amd64-http 脚本中的 openjdk-8-jre 相关的删掉吧。