在Ubuntu一键安装好,无法打开网页  已解决

安装、编译、权限、安全和启动问题请在此发帖提问。
版面规则
安装、编译、权限、安全和启动问题请在此发帖提问。
有问题请说明详细情况,有图的截图!
别只说一句安装不上,执行不了!
截图请截大图,别就截一行。。。
回复
killmade
帖子: 5
注册时间: 周五 3月 27, 2020 11:02

在Ubuntu一键安装好,无法打开网页

帖子 killmade »

新手刚学习,觉得编译安装可能失败率大怕依赖环境没有弄好。所以用sudo curl -L install.domoticz.cn | bash一键安装,一开始用Ubuntu因为官方教程是Ubuntu,安装好无法打开网页,打开domoticz.sh看到用户名是pi,难道不成功是因为要修改配置,那就用树莓派吧,结果还是打不开网页。系统是Ubuntu官网下载的ubuntu-19.10-live-server版本,根据教程升级系统:
sudo apt-get update
sudo apt-get upgrade
也安装了开发工具和依赖库:
sudo apt-get install build-essential nano cmake git libboost-dev libboost-thread-dev libboost-system-dev
sudo apt-get install libsqlite3-dev curl libcurl4-openssl-dev libssl-dev libusb-dev zlib1g-dev python3-dev

问题检查:

尝试编辑了DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
启用Domoticz日志记录,但在/tmp/文件夹里面没有看到domoticz.txt,然后机器重启过也没有出现domoticz.txt,不知道哪里错了?
查了domoticz.service状态
~$ systemctl status domoticz.service
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Fri 2020-04-17 01:05:40 UTC; 12h ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 1077)
Memory: 0B
CGroup: /system.slice/domoticz.service

Apr 17 01:05:36 sx-pc systemd[1]: Starting LSB: Home Automation System...
Apr 17 01:05:40 sx-pc domoticz.sh[775]: /home/sx/domoticz/domoticz: error while
Apr 17 01:05:40 sx-pc systemd[1]: Started LSB: Home Automation System.
lines 1-11/11 (END)...skipping...

telnet 8080端口不通。用service --status-all ,查了有+ domoticz.sh。

:~$ ps -ef | grep domoticz
sx 2983 2702 0 13:43 pts/0 00:00:00 grep --color=auto domoticz


也不知道哪里有问题,还请大神指导下,是哪里错了?还是可以用什么办法检查下错哪里了?因为是新手所以能想到和做的就这些了。
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: 在Ubuntu一键安装好,无法打开网页

帖子 DT27 »

https://www.domoticz.cn/wiki/%E9%85%8D% ... 5.E5.BF.97
查日志
开启日志后要重启服务,然后看日志。
或者直接在domoticz目录里手动启动Domoticz看运行状态

代码: 全选

cd domoticz
sudo ./domoticz
killmade
帖子: 5
注册时间: 周五 3月 27, 2020 11:02

Re: 在Ubuntu一键安装好,无法打开网页

帖子 killmade »

DT27 写了: 周六 4月 18, 2020 15:57 https://www.domoticz.cn/wiki/%E9%85%8D% ... 5.E5.BF.97
查日志
开启日志后要重启服务,然后看日志。
或者直接在domoticz目录里手动启动Domoticz看运行状态

代码: 全选

cd domoticz
sudo ./domoticz


谢谢大神指导,不过我停止服务启动服务后在/tmp目录下依然没有出现domoticz.txt

sx@sx-pc:~/domoticz$ sudo service domoticz.sh stop
sx@sx-pc:~/domoticz$ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: inactive (dead) since Sat 2020-04-18 13:26:40 UTC; 24s ago
Docs: man:systemd-sysv-generator(8)
Process: 2653 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/S
Process: 2693 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUC

Apr 18 13:26:27 sx-pc systemd[1]: Starting LSB: Home Automation System...
Apr 18 13:26:27 sx-pc domoticz.sh[2653]: /home/sx/domoticz/domoticz: error while
Apr 18 13:26:27 sx-pc systemd[1]: Started LSB: Home Automation System.
Apr 18 13:26:40 sx-pc systemd[1]: Stopping LSB: Home Automation System...
Apr 18 13:26:40 sx-pc systemd[1]: domoticz.service: Succeeded.
Apr 18 13:26:40 sx-pc systemd[1]: Stopped LSB: Home Automation System.
sx@sx-pc:~/domoticz$ sudo service domoticz.sh start
sx@sx-pc:~/domoticz$ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh; generated)
Active: active (exited) since Sat 2020-04-18 13:27:26 UTC; 7s ago
Docs: man:systemd-sysv-generator(8)
Process: 2746 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/S

Apr 18 13:27:26 sx-pc systemd[1]: Starting LSB: Home Automation System...
Apr 18 13:27:26 sx-pc domoticz.sh[2746]: /home/sx/domoticz/domoticz: error


然后进入domoticz目录,运行sudo ./domoticz

sx@sx-pc:~/domoticz$ sudo ./domoticz
./domoticz: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

然后根据百度执行了ldd /usr/bin/openssl

sx@sx-pc:~/domoticz$ ldd /usr/bin/openssl
linux-vdso.so.1 (0x00007ffdf17c0000)
libssl.so.1.1 => /lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007f107404e000)
libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f1073d79000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1073d56000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1073b65000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1073b5f000)
/lib64/ld-linux-x86-64.so.2 (0x00007f10741a3000)


然后尝试

sudo apt-get install libssl1.0.0:amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0.0' has no installation candidate
sx@sx-pc:~/domoticz$ sudo apt-get install libssl1.0.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libssl1.0.0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libssl1.0.0' has no installation candidate

找了下网上教程
wget https://www.openssl.org/source/old/1.0. ... .1e.tar.gz
编译安装后
cp libssl.so.1.0.0 libcrypto.so.1.0.0 /usr/lib64

还是报
./domoticz: error while loading shared libraries: libusb-0.1.so.4: cannot open shared object file: No such file or directory

不知道如何解决还请大神指导下 去哪里下载Ubuntu的包,有看到论坛有树莓派的包
头像
DT27
帖子: 345
注册时间: 周四 3月 30, 2017 08:54
Gender:

Re: 在Ubuntu一键安装好,无法打开网页

帖子 DT27 »

ubuntu跟树莓派一样吧。

代码: 全选

sudo apt-get install libusb-0.1
killmade
帖子: 5
注册时间: 周五 3月 27, 2020 11:02

Re: 在Ubuntu一键安装好,无法打开网页

帖子 killmade »

第一次运行提示,已经存在然后卸载。再执行 sudo apt-get install libusb-0.1

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libusb-0.1-4' for regex 'libusb-0.1'
The following NEW packages will be installed:
libusb-0.1-4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/17.4 kB of archives.
After this operation, 58.4 kB of additional disk space will be used.
Selecting previously unselected package libusb-0.1-4:amd64.
(Reading database ... 92771 files and directories currently installed.)
Preparing to unpack .../libusb-0.1-4_2%3a0.1.12-32_amd64.deb ...
Unpacking libusb-0.1-4:amd64 (2:0.1.12-32) ...
Setting up libusb-0.1-4:amd64 (2:0.1.12-32) ...
Processing triggers for libc-bin (2.30-0ubuntu2.1) ...
sx@sx-pc:/usr/local$ cd /home/sx/domoticz/
sx@sx-pc:~/domoticz$ sudo ./domoticz
./domoticz: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory


依然提示这个错误,感觉有点奔溃,但是始终解决不了
头像
obaby
帖子: 15
注册时间: 周一 11月 27, 2017 13:48

Re: 在Ubuntu一键安装好,无法打开网页

帖子 obaby »

libssl.so.1.0.0 这个库没有 apt install libssl
shmily
帖子: 1
注册时间: 周二 9月 11, 2018 11:51

Re: [本图],]  已解决

帖子 shmily »

补充一下解决报:error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
如下两步搞定不需要编译:
wget http://security.ubuntu.com/ubuntu/pool/ ... _amd64.deb
sudo dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.18_amd64.deb
回复