I have pihole installed before. when the FTL api came out, I used the bash script to update pihole. and got this error
ERROR - Unable to update package cache. Please try "test_dpkg_lock; apt-get update"unable to complete update, contact Pi-hole
I manage to solve the issue by running the bash script as su. However pihole FTL api would not load. I uninstalled pihole and decide to reinstall again using the script and got the same error message as the first time.
Running (as root)
test_dpkg_lock ; apt-get update
gives me
sudo: test_dpkg_lock: command not found
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Can you try curl -sSL https://install.pi-hole.net | sudo bash -x and get us the last portion of the on screen display right before the error message is displayed and the script halts?
That test_dpkg_lock is a helper function we wrote to catch some of the potential situation where the apt cache was locked when installing. But a sudo apt update and then a second run of the installer has always solved any latent issues. This is the first time that it's failed multiple times in a row. Will need to further review the update process. Can you post the output from sudo apt update?
If any of those repositories are offline or not responding, then the apt process will exit with a code that tells is not to continue. This is where the screencap of the sudo apt update will help as it will show the responses from each of those repositories and if any of them are not available at this time.
last night I have tried to update pihole.
I tried enter pihole -up command it showed _ERROR - Unable to update package cache. Please try "test_dpkg_lock; apt-get update"unable to complete update, contact Pi-hole.
then i have run sudo apt-get update and pihole -up it worked with some warnings.
When I had problem with FTL I tired to repair the installation by pihole -r it showed me test_dpkg_lock error again.
Then I decided to uninstall and install it again.
now I have to live without pihole
Here is the output of apt update command
Ign:1 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial InRelease
Err:2 cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release
Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://us.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease
Hit:5 http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu xenial InRelease
Hit:6 http://archive.canonical.com/ubuntu xenial InRelease
Get:7 http://us.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu xenial/main Sources [868 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu xenial/restricted Sources [4,808 B]
Get:12 http://us.archive.ubuntu.com/ubuntu xenial/universe Sources [7,728 kB]
Get:13 http://us.archive.ubuntu.com/ubuntu xenial/multiverse Sources [179 kB]
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:15 http://us.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Get:9 http://us.archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:18 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Sources [244 kB]
Get:19 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted Sources [2,996 B]
Get:20 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe Sources [152 kB]
Get:21 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse Sources [5,268 B]
Get:22 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [527 kB]
Get:23 http://us.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [513 kB]
Ign:24 http://us.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Get:25 http://us.archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [213 kB]
Get:26 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [289 kB]
Get:27 http://us.archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [187 kB]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Get:29 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [460 kB]
Get:30 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [446 kB]
Ign:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Get:32 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [159 kB]
Get:33 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [188 kB]
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Get:35 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2,516 B]
Get:36 http://us.archive.ubuntu.com/ubuntu xenial-backports/main Sources [3,304 B]
Get:37 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe Sources [1,868 B]
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Get:39 http://us.archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [3,328 B]
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:15 http://us.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Get:41 http://us.archive.ubuntu.com/ubuntu xenial-security/main Sources [68.9 kB]
Get:42 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted Sources [2,600 B]
Get:43 http://us.archive.ubuntu.com/ubuntu xenial-security/universe Sources [26.8 kB]
Get:44 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse Sources [1,144 B]
Get:45 http://us.archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [257 kB]
Get:46 http://us.archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [245 kB]
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-security/main armhf Packages
Get:48 http://us.archive.ubuntu.com/ubuntu xenial-security/main Translation-en [108 kB]
Get:49 http://us.archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [54.6 kB]
Get:50 http://us.archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [45.7 kB]
Get:51 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,428 B]
Get:52 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [7,432 B]
Ign:53 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Get:54 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,428 B]
Get:55 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Get:56 http://us.archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [110 kB]
Get:57 http://us.archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [97.4 kB]
Ign:58 http://us.archive.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Get:59 http://us.archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [56.5 kB]
Get:60 http://us.archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [32.2 kB]
Get:61 http://us.archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [37.0 kB]
Get:62 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2,748 B]
Get:63 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [2,908 B]
Ign:64 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Get:65 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,232 B]
Get:66 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Get:67 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
Ign:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Ign:14 http://us.archive.ubuntu.com/ubuntu xenial/main armhf Packages
Ign:15 http://us.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Ign:24 http://us.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:53 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:58 http://us.archive.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:64 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Ign:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Ign:38 http://us.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Err:14 http://us.archive.ubuntu.com/ubuntu xenial/main armhf Packages
404 Not Found [IP: 91.189.91.23 80]
Ign:15 http://us.archive.ubuntu.com/ubuntu xenial/restricted armhf Packages
Ign:16 http://us.archive.ubuntu.com/ubuntu xenial/universe armhf Packages
Ign:17 http://us.archive.ubuntu.com/ubuntu xenial/multiverse armhf Packages
Err:24 http://us.archive.ubuntu.com/ubuntu xenial-updates/main armhf Packages
404 Not Found [IP: 91.189.91.23 80]
Ign:28 http://us.archive.ubuntu.com/ubuntu xenial-updates/restricted armhf Packages
Ign:47 http://us.archive.ubuntu.com/ubuntu xenial-security/main armhf Packages
Ign:53 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:58 http://us.archive.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:64 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Ign:31 http://us.archive.ubuntu.com/ubuntu xenial-updates/universe armhf Packages
Ign:34 http://us.archive.ubuntu.com/ubuntu xenial-updates/multiverse armhf Packages
Err:38 http://us.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
404 Not Found [IP: 91.189.91.23 80]
Ign:40 http://us.archive.ubuntu.com/ubuntu xenial-backports/universe armhf Packages
Err:47 http://us.archive.ubuntu.com/ubuntu xenial-security/main armhf Packages
404 Not Found [IP: 91.189.91.23 80]
Ign:53 http://us.archive.ubuntu.com/ubuntu xenial-security/restricted armhf Packages
Ign:58 http://us.archive.ubuntu.com/ubuntu xenial-security/universe armhf Packages
Ign:64 http://us.archive.ubuntu.com/ubuntu xenial-security/multiverse armhf Packages
Reading package lists... Done
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (partner/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Translations (partner/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (non-free/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
E: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial 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.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (main/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:26 and /etc/apt/sources.list:53
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:5 and /etc/apt/sources.list:57
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:10 and /etc/apt/sources.list:62
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (multiverse/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11 (multiverse/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:36 and /etc/apt/sources.list:86
W: Target Packages (restricted/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (restricted/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (restricted/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (restricted/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Translations (restricted/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Translations (restricted/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target DEP-11 (restricted/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target DEP-11-icons (restricted/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:39 and /etc/apt/sources.list:96
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (partner/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Translations (partner/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:50 and /etc/apt/sources.list:93
W: Target Packages (non-free/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:102 and /etc/apt/sources.list.d/resilio-sync.list:1
Every line that starts with Err on that list is a repository that will not update and will cause the installer to fail.
Before you can install the Pi-hole you would need to resolve the errors with the apt sources and bad repositories that are listed until you get a clean and successful update.
yes. I have disabled all the sources and installed pihole again.
::: You are root.
::: Verifying free disk space...
:::
::: Updating local cache of available packages... done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Pi-hole installation...
::: Checking for apt-utils... installed!
::: Checking for debconf... installed!
::: Checking for dhcpcd5... installed!
::: Checking for git... installed!
::: Checking for iproute2... installed!
::: Checking for whiptail... installed!
:::
::: Stopping dnsmasq service... done.
:::
::: Stopping lighttpd service... done.
::: Using Google DNS servers.
::: Static IP already configured
::: IPv4 address: 192.168.1.30/24
::: IPv6 address:
::: Web Interface On.
::: Logging On.
:::
::: Checking for existing repository...
::: Updating repo in /etc/.pihole... done!
done!
:::
::: Checking for existing repository...
::: Updating repo in /var/www/html/admin... done!
done!
::: Checking for bc... installed!
::: Checking for cron... installed!
::: Checking for curl... installed!
::: Checking for dnsmasq... installed!
::: Checking for dnsutils... added to install list!
::: Checking for iputils-ping... installed!
::: Checking for lsof... installed!
::: Checking for netcat... installed!
::: Checking for sudo... installed!
::: Checking for unzip... installed!
::: Checking for wget... installed!
::: Checking for lighttpd... installed!
::: Checking for php5-common... added to install list!
::: Checking for php5-cgi... added to install list!
I have another problems now.
There was not any installation successful screen to show temp password or other info
The install did not complete successfully. There should be more information after the php5-cgi line. The call to install the additional packages failed.
Try again the verbose install and we'll see what error is now happening. curl -sSL https://install.pi-hole.net | sudo bash -x
I have quite some packages that are install from repositories that are no longer functioning. Is there a way to install pihole without removing those repos?
Because we need to have the latest packaged versions of the daemons and servers we need to be able to run a clean apt update process. You can try commenting out those repositories temporarily while you are installing the Pi-hole and then reinstate them after the installation, but it's not really necessary to keep non-functioning repositories on your lists, they will only cause errors when you try to run any apt commands.