分页: 1 / 1

Ubuntu安装 不上 请大神帮忙

发表于 : 周五 2月 14, 2020 17:24
wangshui66
我对 ubuntu 不是很懂 我的情况为libcurl4安装不了
系统为Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 3.18.24_s40 armv7l)
故障现象
ubuntu@ubuntu-zy:~$ sudo curl -L install.domoticz.cn | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16553 100 16553 0 0 96453 0 --:--:-- --:--:-- --:--:-- 96801
:::
::: You are root.
bash: line 101: test: /etc/os-release:16.04: integer expression expected
::: Verifying free disk space...
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Domoticz installation...
::: Checking for apt-utils... installed!
::: Checking for whiptail... installed!
::: Checking for git... installed!
::: Checking for curl... installed!
::: Checking for unzip... installed!
::: Checking for wget... installed!
::: Checking for sudo... installed!
::: Checking for cron... installed!
::: Checking for libudev-dev... installed!
::: Checking for libcurl4...ubuntu@ubuntu-zy:~$

libboost-system-dev 也安装不上

ubuntu@ubuntu-zy:~$ sudo apt install build-essential nano cmake git libboost-dev libboost-thread-dev libboost-system-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost-system-dev

单独 libcurl4 也安装不上

ubuntu@ubuntu-zy:~$ sudo apt install libcurl4
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcurl4

谢谢

Re: Ubuntu安装 不上 请大神帮忙  已解决

发表于 : 周五 2月 14, 2020 21:55
DT27
4不行就改用3:这是把3改4:viewtopic.php?f=6&t=365&p=1622&hilit=libcurl4#p1623

4改3就反过来:

代码: 全选

sudo curl -sSL install.domoticz.com > install.sh
sudo sed -i 's/curl4/curl3/g' install.sh
sudo chmod 755 install.sh
sudo ./install.sh
另外确认下你有没有修改过系统源,看下修改的对不对,源的版本跟你安装的系统的版本是不是对应的。

Re: Ubuntu安装 不上 请大神帮忙

发表于 : 周一 2月 17, 2020 10:59
wangshui66
谢谢
已经安装上了 最后更换了网站后完全安装上了 。

给我这样的小白一个提示吧
用 sudo curl -sSL install.domoticz.com > install.sh
sudo sed -i 's/curl4/curl3/g' install.sh
sudo chmod 755 install.sh
sudo ./install.sh
安装后提示
--2020-02-14 09:28:00-- http://www.domoticz.com/download.php?ch ... ine=armv7l
Resolving www.domoticz.com (www.domoticz.com)... 104.31.79.142, 104.31.78.142, 2606:4700:3031::681f:4f8e, ...
Connecting to www.domoticz.com (www.domoticz.com)|104.31.79.142|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-02-14 09:28:01 ERROR 403: Forbidden.


我看了以前的帖子 不了解命令意义改了好几次网址 最后命令成功
sudo curl -sSL install.domoticz.cn > install.sh
sudo sed -i 's/curl4/curl3/g' install.sh
sudo chmod 755 install.sh
sudo ./install.sh

最后非常感谢 DT27 的帮助

Re: Ubuntu安装 不上 请大神帮忙

发表于 : 周三 2月 19, 2020 07:38
DT27
英文站 domoticz·com 把国内ip屏蔽了,所以返回 ERROR 403:Forbidden。
domoticz.cn是我建的中文站。