Pi-hole error installing in ubuntu 18.04.3

Hello
i want to install pi-hole on ubuntu 18.04.3 bu i took an error.
i run " curl -sSL https://install.pi-hole.net | sudo bash -x" command to seeing log.
i took a log;

debconf-apt-progress – apt-get --yes --no-install-recommends install netcat idn2 sqlite3 lighttpd php-common php-cgi php-sqlite3

According to the log, i run

apt-get --yes --no-install-recommends install netcat idn2 sqlite3 lighttpd php-common php-cgi php-sqlite3

i took an error;

lighttpd : Depends: libssl1.1 (>= 1.1.0) but it is not going to be installed
php-cgi : Depends: php7.2-cgi but it is not going to be installed
php-sqlite3 : Depends: php7.2-sqlite3 but it is not going to be installed

i run apt-cache policy libssl1.1

libssl1.1:
Installed: 1.1.1c-1+0~20190710.13+debian9~1.gbp359e02
Candidate: 1.1.1c-1+0~20190710.13+debian9~1.gbp359e02
Version table:
*** 1.1.1c-1+0~20190710.13+debian9~1.gbp359e02 100
100 /var/lib/dpkg/status
1.1.1-1ubuntu2.1~18.04.4 500
500 http://tr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
1.1.0g-2ubuntu4 500
500 http://tr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages

And then i run apt install 1.1.0g-2ubuntu4

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package 1.1.0g-2ubuntu4
E: Couldn’t find any package by glob ‘1.1.0g-2ubuntu4’
E: Couldn’t find any package by regex ‘1.1.0g-2ubuntu4’

I’ve been trying for three days, but I can’t figure it out…

Can you help me ?

Thank you

The above command fails because you didn’t tell apt which package to install; you gave a version number rather than a package name.

I’m wondering if something is wrong with your package manager. What happens when you try to manually install the dependencies?

sudo apt install libssl1.1 php7.2-cgi php7.2-sqlite3

Please post the output you get from running the above command. If it succeeds, then re-try the apt command you saw in the logs:

sudo apt install netcat idn2 sqlite3 lighttpd php-common php-cgi php-sqlite3

To change version for package libssl1.1 from 1.1.1c into 1.1.0g:

sudo apt install libssl1.1=1.1.0g-2ubuntu4

Scott and deHakkelaar thank you.
i run “apt install libssl1.1=1.1.0g-2ubuntu4”,The problem is solved.
But lighttp app is very slow.When i entered in pihole web management(http://x.x.x.x/admin),the page sometimes not opened(timeout),the pages opened 1 minute.

pihole -d

*** [ INITIALIZING ]
[i] 2019-10-07:08:01:32 debug log has been initialized.

*** [ INITIALIZING ] Sourcing setup variables
[i] Sourcing /etc/pihole/setupVars.conf…2

*** [ DIAGNOSING ]: Core version
[i] Core: v4.3.2 (How do I update Pi-hole?)
[i] Branch: master
[i] Commit: v4.3.2-0-ge41c4b5

*** [ DIAGNOSING ]: Web version
[i] Web: v4.3.2 (How do I update Pi-hole?)
[i] Branch: master
[i] Commit: v4.3.2-0-g38d8e77

*** [ DIAGNOSING ]: FTL version
[✓] FTL: v4.3.1

*** [ DIAGNOSING ]: lighttpd version
[i] 1.4.45

*** [ DIAGNOSING ]: php version
[i] 7.2.19

*** [ DIAGNOSING ]: Operating system
[✓] Ubuntu 18.04.3 LTS

*** [ DIAGNOSING ]: SELinux
[i] SELinux not detected

*** [ DIAGNOSING ]: Processor
[i] x86_64

*** [ DIAGNOSING ]: Networking
[✓] IPv4 address(es) bound to the eth0 interface:
192.168.a.b/24 matches the IP found in /etc/pihole/setupVars.conf

[✓] IPv6 address(es) bound to the eth0 interface:
fe80::a8aa:aaff:fe00:ad89 does not match the IP found in /etc/pihole/setupVars.conf (Use IPv6 ULA addresses for Pi-hole)

^ Please note that you may have more than one IP address listed.
As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.

The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.

[i] Default IPv4 gateway: 212.x.y.z

*** [ DIAGNOSING ]: Ports in use
*:22 sshd (IPv4)
*:22 sshd (IPv6)
*:3127 squid (IPv6)
:3128 squid (IPv6)
:10000 miniserv.p (IPv4)
[
:53] is in use by pihole-FTL
[
:53] is in use by pihole-FTL
[127.0.0.1:4711] is in use by pihole-FTL
[[::1]:4711] is in use by pihole-FTL
*:81 lighttpd (IPv4)
*:81 lighttpd (IPv6)

*** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
[✓] lascuerdasdelorca.com is 0.0.0.0 via localhost (127.0.0.1)
[✓] lascuerdasdelorca.com is 0.0.0.0 via Pi-hole (192.168.a.b)
[✓] doubleclick.com is 216.58.206.174 via a remote, public DNS server (8.8.8.8)

*** [ DIAGNOSING ]: Pi-hole processes
[✓] lighttpd daemon is active
[✓] pihole-FTL daemon is active

*** [ DIAGNOSING ]: Setup variables
BLOCKING_ENABLED=true
PIHOLE_INTERFACE=eth0
IPV4_ADDRESS=192.168.a.b/24
IPV6_ADDRESS=
PIHOLE_DNS_1=212.a.b.c
PIHOLE_DNS_2=212.d.e.f
QUERY_LOGGING=true
INSTALL_WEB_SERVER=true
INSTALL_WEB_INTERFACE=true
LIGHTTPD_ENABLED=true

*** [ DIAGNOSING ]: Dashboard and block page
[✗] Block page X-Header: X-Header does not match or could not be retrieved.

[✗] Web interface X-Header: X-Header does not match or could not be retrieved.

*** [ DIAGNOSING ]: Gravity list
-rw-r–r-- 1 root root 23710525 Eki 6 18:08 /etc/pihole/gravity.list
-----head of gravity.list------
${tomcat.server}
-icloudi.com
-id.en-restore.info
-max.shop

-----tail of gravity.list------
zzzzz4.52896368.com
zzzzzz.com
zzzzzzzzzzzzz.com
ƒluwdu.cn

*** [ DIAGNOSING ]: contents of /etc/pihole

-rw-r–r-- 1 root root 4373 Eki 6 15:23 /etc/pihole/adlists.list
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/adaway.org/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/adblock-nocoin-list/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/adguard-simplified/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/anudeepnd-adservers/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/disconnect.me-ad/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/disconnect.me-malvertising/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/disconnect.me-malware/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/disconnect.me-tracking/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/easylist/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/easyprivacy/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/eth-phishing-detect/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/fademind-add.2o7net/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/fademind-add.dead/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/fademind-add.risk/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/fademind-add.spam/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/kadhosts/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/malwaredomainlist.com/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/malwaredomains.com-immortaldomains/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/malwaredomains.com-justdomains/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/matomo.org-spammers/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/mitchellkrogza-badd-boyz-hosts/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/pgl.yoyo.org/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/ransomwaretracker.abuse.ch/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/someonewhocares.org/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/spam404.com/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/stevenblack/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/winhelp2002.mvps.org/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/zerodot1-coinblockerlists-browser/list.txt
https://raw.githubusercontent.com/hectorm/hmirror/master/data/zeustracker.abuse.ch/list.txt
https://raw.githubusercontent.com/CHEF-KOCH/Audio-fingerprint-pages/master/AudioFp.txt
https://raw.githubusercontent.com/CHEF-KOCH/Canvas-fingerprinting-pages/master/Canvas.txt
https://raw.githubusercontent.com/CHEF-KOCH/WebRTC-tracking/master/WebRTC.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-blocklist.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
https://www.stopforumspam.com/downloads/toxic_domains_whole.txt
https://raw.githubusercontent.com/CHEF-KOCH/BarbBlock-filter-list/master/HOSTS.txt
https://raw.githubusercontent.com/CHEF-KOCH/Canvas-Font-Fingerprinting-pages/master/Canvas.txt
http://phishing.mailscanner.info/phishing.bad.sites.conf
https://ransomwaretracker.abuse.ch/downloads/RW_DOMBL.txt
https://ransomwaretracker.abuse.ch/downloads/CW_C2_DOMBL.txt
https://ransomwaretracker.abuse.ch/downloads/LY_C2_DOMBL.txt
https://ransomwaretracker.abuse.ch/downloads/TC_C2_DOMBL.txt
https://ransomwaretracker.abuse.ch/downloads/TL_C2_DOMBL.txt
https://gitlab.com/quidsup/notrack-blocklists/raw/master/notrack-malware.txt
https://zerodot1.gitlab.io/CoinBlockerLists/list.txt
https://zerodot1.gitlab.io/CoinBlockerLists/list_browser.txt
https://zerodot1.gitlab.io/CoinBlockerLists/list_optional.txt
https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
https://smokingwheels.github.io/Pi-hole/allhosts

-rw-r–r-- 1 root root 0 Eki 6 14:38 /etc/pihole/blacklist.txt

-rw-r–r-- 1 root root 46 Eki 6 18:08 /etc/pihole/local.list
192.168.a.b gateway
192.168.a.b pi.hole

-rw-r–r-- 1 root root 238 Eki 6 18:06 /etc/pihole/logrotate
/var/log/pihole.log {
su root syslog
daily
copytruncate
rotate 5
compress
delaycompress
notifempty
nomail
}
/var/log/pihole-FTL.log {
su root syslog
weekly
copytruncate
rotate 3
compress
delaycompress
notifempty
nomail
}

-rw-r–r-- 1 root root 158 Eki 6 15:50 /etc/pihole/whitelist.txt

avast
java.com
microsoft.com
windowsupdate
edu.tr
avg

*** [ DIAGNOSING ]: contents of /etc/dnsmasq.d

-rw-r–r-- 1 root root 1398 Eki 6 18:06 /etc/dnsmasq.d/01-pihole.conf
addn-hosts=/etc/pihole/gravity.list
addn-hosts=/etc/pihole/black.list
addn-hosts=/etc/pihole/local.list
localise-queries
no-resolv
cache-size=10000
log-queries
log-facility=/var/log/pihole.log
local-ttl=2
log-async
server=212.a.b.c
server=212.d.e.f
interface=eth0

*** [ DIAGNOSING ]: contents of /etc/lighttpd

-rw-r–r-- 1 root root 3499 Eki 7 07:51 /etc/lighttpd/lighttpd.conf
server.modules = (
“mod_access”,
“mod_accesslog”,
“mod_auth”,
“mod_expire”,
“mod_compress”,
“mod_redirect”,
“mod_setenv”,
“mod_rewrite”
)
server.document-root = “/var/www/html”
server.error-handler-404 = “/pihole/index.php”
server.upload-dirs = ( “/var/cache/lighttpd/uploads” )
server.errorlog = “/var/log/lighttpd/error.log”
server.pid-file = “/var/run/lighttpd.pid”
server.username = “www-data”
server.groupname = “www-data”
server.port = 81
accesslog.filename = “/var/log/lighttpd/access.log”
accesslog.format = “%{%s}t|%V|%r|%s|%b”
index-file.names = ( “index.php”, “index.html”, “index.lighttpd.html” )
url.access-deny = ( “~”, “.inc”, “.md”, “.yml”, “.ini” )
static-file.exclude-extensions = ( “.php”, “.pl”, “.fcgi” )
compress.cache-dir = “/var/cache/lighttpd/compress/”
compress.filetype = ( “application/javascript”, “text/css”, “text/html”, “text/plain” )
mimetype.assign = ( “.png” => “image/png”,
“.jpg” => “image/jpeg”,
“.jpeg” => “image/jpeg”,
“.html” => “text/html”,
“.css” => “text/css; charset=utf-8”,
“.js” => “application/javascript”,
“.json” => “application/json”,
“.txt” => “text/plain”,
“.svg” => “image/svg+xml” )
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell “find /etc/lighttpd/conf-enabled -name ‘*.conf’ -a ! -name ‘letsencrypt.conf’ -printf 'include “%p”
’ 2>/dev/null”
$HTTP[“url”] =~ “^/admin/” {

   setenv.add-response-header = (
       "X-Pi-hole" => "The Pi-hole Web interface is working!",
       "X-Frame-Options" => "DENY"
   )
   $HTTP["url"] =~ ".ttf$" {

       setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
   }

}
$HTTP[“url”] =~ “^/admin/.(.*)” {
url.access-deny = ("")
}
include_shell “cat external.conf 2>/dev/null”

*** [ DIAGNOSING ]: contents of /etc/cron.d

-rw-r–r-- 1 root root 1704 Eki 6 18:06 /etc/cron.d/pihole
24 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
@reboot root /usr/sbin/logrotate /etc/pihole/logrotate
*/10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
52 17 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
@reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot

*** [ DIAGNOSING ]: contents of /var/log/lighttpd

-rw-r–r-- 1 www-data www-data 4190 Eki 7 07:51 /var/log/lighttpd/error.log
2019-10-06 13:22:34: (log.c.217) server started
2019-10-06 13:22:51: (server.c.1828) server stopped by UID = 0 PID = 1
2019-10-06 13:22:52: (log.c.217) server started
2019-10-06 13:27:05: (server.c.1828) server stopped by UID = 0 PID = 1
2019-10-06 13:27:21: (log.c.217) server started
2019-10-06 14:00:44: (server.c.1828) server stopped by UID = 0 PID = 11288
2019-10-06 14:00:45: (log.c.217) server started
2019-10-06 14:11:17: (server.c.1828) server stopped by UID = 0 PID = 1
2019-10-06 14:11:34: (log.c.217) server started
2019-10-06 14:13:35: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=212.a.b.c:81&bp): failed to open stream: Connection refused in /var/www/html/pihole/index.php on line 130
2019-10-06 14:13:35: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 131
2019-10-06 14:13:35: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 131
2019-10-06 14:27:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=212.a.b.c:81&bp): failed to open stream: Connection refused in /var/www/html/pihole/index.php on line 130
2019-10-06 14:27:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 131
2019-10-06 14:27:56: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 131
2019-10-06 16:06:54: (server.c.1828) server stopped by UID = 0 PID = 1
2019-10-06 16:07:10: (log.c.217) server started
2019-10-06 17:13:40: (server.c.1828) server stopped by UID = 0 PID = 1
2019-10-06 17:15:11: (log.c.217) server started
2019-10-06 17:15:46: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: file(http://127.0.0.1/admin/scripts/pi-hole/php/queryads.php?domain=192.168.x.y:81&bp): failed to open stream: Connection refused in /var/www/html/pihole/index.php on line 130
2019-10-06 17:15:46: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_filter() expects parameter 1 to be array, string given in /var/www/html/pihole/index.php on line 131
2019-10-06 17:15:46: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Warning: array_values() expects parameter 1 to be array, null given in /var/www/html/pihole/index.php on line 131
2019-10-06 17:20:14: (server.c.1828) server stopped by UID = 0 PID = 1
2019-10-06 17:20:15: (log.c.217) server started
2019-10-06 17:20:16: (server.c.1828) server stopped by UID = 0 PID = 1

*** [ DIAGNOSING ]: contents of /var/log

-rw-r–r-- 1 pihole pihole 150 Eki 7 04:24 /var/log/pihole-FTL.log
-----head of pihole-FTL.log------
[2019-10-07 00:00:53.273 16818] WARN: Regex evaluation took 10.382 msec
[2019-10-07 04:24:44.006 16818] Resizing “/FTL-queries” from 229376 to 458752

-----tail of pihole-FTL.log------
[2019-10-07 00:00:53.273 16818] WARN: Regex evaluation took 10.382 msec
[2019-10-07 04:24:44.006 16818] Resizing “/FTL-queries” from 229376 to 458752

*** [ DIAGNOSING ]: contents of /dev/shm
-rw------- 1 pihole pihole 331776 Eki 6 18:06 /dev/shm/FTL-clients
-rw------- 1 pihole pihole 108 Eki 6 18:06 /dev/shm/FTL-counters
-rw------- 1 pihole pihole 98304 Eki 6 18:08 /dev/shm/FTL-domains
-rw------- 1 pihole pihole 20480 Eki 6 18:06 /dev/shm/FTL-forwarded
-rw------- 1 pihole pihole 48 Eki 6 18:07 /dev/shm/FTL-lock
-rw------- 1 pihole pihole 12288 Eki 6 18:06 /dev/shm/FTL-overTime
-rw------- 1 pihole pihole 458752 Eki 7 04:59 /dev/shm/FTL-queries
-rw------- 1 pihole pihole 12 Eki 6 18:06 /dev/shm/FTL-settings
-rw------- 1 pihole pihole 4096 Eki 6 18:06 /dev/shm/FTL-strings
-rw------- 1 proxy proxy 8 Eki 6 16:07 /dev/shm/squid-cf__metadata.shm
-rw------- 1 proxy proxy 8216 Eki 6 16:07 /dev/shm/squid-cf__queues.shm
-rw------- 1 proxy proxy 44 Eki 6 16:07 /dev/shm/squid-cf__readers.shm

*** [ DIAGNOSING ]: Locale
LANG=en_US.UTF-8

*** [ DIAGNOSING ]: Pi-hole log
-rw-r–r-- 1 pihole pihole 1552364 Eki 7 08:01 /var/log/pihole.log
-----head of pihole.log------
Oct 7 00:00:52 dnsmasq[16818]: query[A] www.google.com from 192.168.x.y
Oct 7 00:00:52 dnsmasq[16818]: forwarded www.google.com to 212.x.y
Oct 7 00:00:52 dnsmasq[16818]: reply www.google.com is 172.217.169.164
Oct 7 00:00:52 dnsmasq[16818]: query[A] cdn.mysql.com from 192.168.2.2
Oct 7 00:00:52 dnsmasq[16818]: forwarded cdn.mysql.com to 212.x.y
Oct 7 00:00:52 dnsmasq[16818]: reply cdn.mysql.com is
Oct 7 00:00:52 dnsmasq[16818]: reply cdn.mysql.com.edgekey.net is
Oct 7 00:00:52 dnsmasq[16818]: reply e7528.d.akamaiedge.net is 2.20.77.21
Oct 7 00:00:53 dnsmasq[16818]: query[A] ocsp.digicert.com from 192.168.x.y
Oct 7 00:00:53 dnsmasq[16818]: forwarded ocsp.digicert.com to 212.yyyyy
Oct 7 00:00:53 dnsmasq[16818]: reply ocsp.digicert.com is
Oct 7 00:00:53 dnsmasq[16818]: reply cs9.wac.phicdn.net is 93.184.220.29
Oct 7 00:00:53 dnsmasq[16818]: query[A] status.geotrust.com from 192.168.2.2
Oct 7 00:00:53 dnsmasq[16818]: forwarded status.geotrust.com to 212.xxxx
Oct 7 00:00:53 dnsmasq[16818]: reply status.geotrust.com is
Oct 7 00:00:53 dnsmasq[16818]: reply ocsp.digicert.com is
Oct 7 00:00:53 dnsmasq[16818]: reply cs9.wac.phicdn.net is 93.184.220.29
Oct 7 00:01:22 dnsmasq[16818]: query[type=0] . from 192.168.2.39
Oct 7 00:01:22 dnsmasq[16818]: forwarded . to 212.1yyyy
Oct 7 00:01:22 dnsmasq[16818]: forwarded . to 212.xxx



[✓] ** FINISHED DEBUGGING! **

Lighttpd port already open.
if the web page come, i took an error " dns service not runnig(red style)

but dns server is runnnig :slight_smile:

cpu is % 4,Ram is %2(use)

i can not understand.
Can you help me ?

the firewall blocked.The problem is solved :D:D:D: