安装 LibrePlan 时出现问题

安装 LibrePlan 时出现问题

我正在尝试在 Ubuntu 18.04 上安装 LibrePlan,说明说我应该运行

sudo add-apt-repository ppa:libreplan/ppa
sudo apt-get update
sudo apt-get install libreplan 

但是在第一个命令上我得到了这个:

LibrePlan (aka NavalPlan) is a free software web application for     
project management. It is written in Java and licensed under 
AGPLlicense.
More info: https://launchpad.net/~libreplan/+archive/ubuntu/ppa
Press [ENTER] to continue or Ctrl-c to cancel adding it.
Hit:1 http://bg.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://bg.archive.ubuntu.com/ubuntu bionic-updates InRelease  [88,7 kB]
Ign:3 http://ppa.launchpad.net/libreplan/ppa/ubuntu bionic InRelease           
Get:4 http://bg.archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB] 
Err:5 http://ppa.launchpad.net/libreplan/ppa/ubuntu bionic Release             
404  Not Found [IP: 91.189.95.83 80]
Get:6 http://security.ubuntu.com/ubuntu bionic-security InRelease [83,2 kB]    
Get:7 http://bg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [290 kB]
Get:8 http://bg.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [262 kB]
Get:9 http://bg.archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [138 kB]
Get:10 http://bg.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons [27,5 kB]
Get:11 http://bg.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 64x64 Icons [53,7 kB]
Get:12 http://bg.archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [161 kB]
Get:13 http://bg.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [161 kB]
Get:14 http://bg.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [152 kB]
Get:15 http://bg.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 48x48 Icons [153 kB]
Get:16 http://bg.archive.ubuntu.com/ubuntu bionic-updates/universe DEP-11 64x64 Icons [265 kB]
Get:17 http://bg.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2468 B]
Get:18 http://bg.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [5096 B]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [204 B]
Get:20 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [5788 B]
Reading package lists... Done               
E: The repository 'http://ppa.launchpad.net/libreplan/ppa/ubuntu bionic Release' does not have a Release file.
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.

我看到网址http://ppa.launchpad.net/libreplan/ppa/ubuntu指向包含“dists”但不包含 bionic 文件夹的存储库,这是问题所在吗? Ubuntu 18.04 的软件包尚未准备好(如果我正确使用了软件包这个词)?

此外,我尝试添加密钥 B4BE203D09B8AF1F528B8D1054CAAB19DE395C80sudo apt-key add key.txt但出现以下错误gpg: no valid OpenPGP data found.密钥位于https://launchpad.net/~libreplan

答案1

两者都能正常工作Ubuntu 18.04 和 20.04通过增加原始指南的一些附加步骤

安装要求:

apt-get install git-core maven openjdk-8-jdk postgresql postgresql-client python-docutils make gettext cutycapt

设置默认 JDK

update-java-alternatives -s java-1.8.0-openjdk-amd64

连接到数据库:

su postgres -c psql

使用SQL语句:

CREATE DATABASE libreplandev;
CREATE DATABASE libreplandevtest;
CREATE USER libreplan WITH PASSWORD 'libreplan';
GRANT ALL PRIVILEGES ON DATABASE libreplandev TO libreplan;
GRANT ALL PRIVILEGES ON DATABASE libreplandevtest TO libreplan;

下载源代码:

git clone git://github.com/LibrePlan/libreplan.git

将缺失的依赖项添加到 libreplan/libreplan-webapp/pom.xml 的末尾

<dependency>
    <groupId>org.olap4j</groupId>
    <artifactId>olap4j</artifactId>
    <version>1.2.0</version>
</dependency>

编译项目但跳过测试

cd libreplan/
mvn -DskipTests clean install

启动程序:

cd libreplan-webapp/
mvn jetty:run

转到 http://localhost:8080/

相关内容