我昨天安装了景观,没有任何问题,然后我把它弄坏了,因为我必须更改我的主机名和 apache 上的一堆其他配置。
我犯了一个错误,删除了尝试使用 Landscape Server Quickstart 进行“全新安装”的软件包,现在我陷入了下面的错误。
我已经删除了景观组、用户、postgress 数据和配置文件,但就是搞不清楚。
apt-get install
输出:
apt-get install landscape-server-quickstart
Reading package lists... Done
Building dependency tree
Reading state information... Done
landscape-server-quickstart is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
**Setting up landscape-server (15.01.3-0ubuntu2) ...
========================================================================
Attempting schema upgrade as requested.
WARNING: this could take several minutes or more.
========================================================================
2015-08-12 19:37:38 INFO landscape-setup Bootstrapping from service.conf file ...
2015-08-12 19:37:38 ERROR landscape-setup 'superuser'**
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: error processing package landscape-server (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of landscape-server-quickstart:
landscape-server-quickstart depends on landscape-server (>= 15.01.3-0ubuntu2); however:
Package landscape-server is not configured yet.
dpkg: error processing package landscape-server-quickstart (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
landscape-server
landscape-server-quickstart
E: Sub-process /usr/bin/dpkg returned an error code (1)
这是安装日志:
Aug 12 16:37:38 landscape-setup INFO Bootstrapping from service.conf file ...
Aug 12 16:37:38 landscape-setup ERR 'superuser'
这里是service.conf
:
cat service.conf
[combo-loader]
base-port = 9070
threads = 10
[job-handler]
mailer = queue
mailer-path = /var/lib/landscape/landscape-mail-queue
[api]
mailer = queue
mailer-path = /var/lib/landscape/landscape-mail-queue
base-port = 9080
[maintenance]
mailer-path = /var/lib/landscape/landscape-mail-queue
[scripts]
mailer-path = /var/lib/landscape/landscape-mail-queue
[pingserver]
base-port = 8070
[message-server]
base-port = 8090
access-log = message-server_access-%(instance)s.log
oops-key = DM%(instance-letter)s
[landscape]
access-log = appserver_access-%(instance)s.log
oops-key = DF%(instance-letter)s
reprepro-binary = /opt/canonical/landscape/scripts/reprepro-wrapper.sh
mailer-path = /var/lib/landscape/landscape-mail-queue
repository-path = /var/lib/landscape/landscape-repository
secret-token =
[package-upload]
root-url = http://localhost:9100
threads = 10
mailer = queue
stores = main account-1
port = 9100
mailer-path = /var/lib/landscape/landscape-mail-queue
[load-shaper]
good-duration = 60.0
critical-load = 10.0
good-load = 3.0
[package-search]
account-threshold = 800
stores = main package resource-1
port = 9099
pid-path = /var/run/landscape/landscape-package-search-1.pid
[broker]
vhost = landscape
host = localhost
password = b64:a25Gam4yOW9iRFJwS2tTSA==
port = 5672
user = landscape
[stores]
user = landscape
host = localhost
[schema]
答案1
问题是我删除了这些包而不是清除它们,这弄乱了 Landscape 配置文件和数据库。因此我决定进行手动安装,安装地址如下:LDS 手动安装
最终的安装将更加优雅和干净。
答案2
尝试:
sudo pg_createcluster 9.3 main --start
然后:
sudo apt-get install landscape-server-quickstart