Apt issues preventing update

Having a similar issue updating my FTL to latest version see log below:

  [i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u3
  [i] Performing unattended setup, no whiptail dialogs will be displayed
  [✓] Disk space check
  [✗] Update local cache of available packages
  Error: Unable to update package cache. Please try "apt-get update"
  Unable to complete update, please contact Pi-hole Support
pi@raspberrypi:/ $ sudo apt-get update
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Ign:3 https://dev2day.de/pms jessie InRelease
Ign:4 https://dev2day.de/pms jessie Release
Ign:5 https://dev2day.de/pms jessie/main armhf Packages
Ign:6 https://dev2day.de/pms jessie/main all Packages
Ign:7 https://dev2day.de/pms jessie/main Translation-en_US
Ign:8 https://dev2day.de/pms jessie/main Translation-en
Ign:9 https://dev2day.de/pms jessie/main Translation-en_US.UTF-8
Get:10 http://raspbian.raspberrypi.org/raspbian stretch/non-free Sources [125 kB]
Ign:5 https://dev2day.de/pms jessie/main armhf Packages
Ign:6 https://dev2day.de/pms jessie/main all Packages
Get:11 http://raspbian.raspberrypi.org/raspbian stretch/main Sources [9,719 kB]
Get:12 http://raspbian.raspberrypi.org/raspbian stretch/contrib Sources [75.2 kB]
Ign:7 https://dev2day.de/pms jessie/main Translation-en_US
Ign:8 https://dev2day.de/pms jessie/main Translation-en
Ign:9 https://dev2day.de/pms jessie/main Translation-en_US.UTF-8
Ign:5 https://dev2day.de/pms jessie/main armhf Packages
Ign:6 https://dev2day.de/pms jessie/main all Packages
Ign:7 https://dev2day.de/pms jessie/main Translation-en_US
Ign:8 https://dev2day.de/pms jessie/main Translation-en
Ign:9 https://dev2day.de/pms jessie/main Translation-en_US.UTF-8
Ign:5 https://dev2day.de/pms jessie/main armhf Packages
Ign:6 https://dev2day.de/pms jessie/main all Packages
Ign:7 https://dev2day.de/pms jessie/main Translation-en_US
Ign:8 https://dev2day.de/pms jessie/main Translation-en
Ign:9 https://dev2day.de/pms jessie/main Translation-en_US.UTF-8
Ign:5 https://dev2day.de/pms jessie/main armhf Packages
Ign:6 https://dev2day.de/pms jessie/main all Packages
Ign:7 https://dev2day.de/pms jessie/main Translation-en_US
Ign:8 https://dev2day.de/pms jessie/main Translation-en
Ign:9 https://dev2day.de/pms jessie/main Translation-en_US.UTF-8
Err:5 https://dev2day.de/pms jessie/main armhf Packages
  404  Not Found
Ign:6 https://dev2day.de/pms jessie/main all Packages
Ign:7 https://dev2day.de/pms jessie/main Translation-en_US
Ign:8 https://dev2day.de/pms jessie/main Translation-en
Ign:9 https://dev2day.de/pms jessie/main Translation-en_US.UTF-8
Fetched 15.0 kB in 20s (739 B/s)
Reading package lists... Done
W: The repository 'https://dev2day.de/pms jessie Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/stretch/InRelease  Unable to find expected entry 'rPi/source/Sources' in Release file (Wrong sources.list entry or malformed file)
E: Failed to fetch https://dev2day.de/pms/dists/jessie/main/binary-armhf/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

You need to fix your apt issues before anything can be updated or installed. It looks like you have jessie repositories but you actually are on stretch.

Can you point me to a post that discusses how to remedy these apt issues?

You may find it quicker to do a clean OS install instead of trying to fix repositories. If you choose to reinstall, don't forget to backup your Pi-Hole settings with teleporter.

Thanks for the advice will likely do just that, will teleporter transfer all the lists in pi-hole as well?

Have a read here what the maintainer of that dev2day.de repository has to say:

http://dev2day.de/

25 Jul 2019, 18:05

Official Plex packages for the Raspberry Pi 2-4 and other ARMv7 and ARMv8 devices have been available for several months. It’s finally time to pull the plug and disable my own private package repository. Please read the following thread if you still have not migrated to the official package repository: READ ME FIRST: About Server ARMv7 and ARMv8 Ubuntu / Debian - NAS & Devices - Plex Forum

To get apt on the rails again, find the apt config file containing the broken repository:

grep dev2day.de -R /etc/apt/sources.list*

Hash out # the broken entries, and run sudo apt-get update again.

EDIT: corrected apt-get instead of apt for older distro's

Yes. I recommend running teleporter to export, then you can look at the file it exported, expand it and see the contents.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.