I tried to install docker on my raspbian install and accidentally broke apt-get If I run apt-get install or upgrade, I get the following error:E: The package debconf needs to be reinstalled, but I can't find an archive for it.I've tried all the suggested solutions I could find online, some examples:Command:apt-get -f install debconfResult:root@raspberrypi:~# apt-get -f install debconfReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.Command:dpkg-reconfigure debconfResult:root@raspberrypi:~# dpkg-reconfigure debconf/usr/sbin/dpkg-reconfigure: debconf is broken or not fully installedCommand:apt-get install --reinstall debconfResult:root@raspberrypi:~# apt-get install --reinstall debconfReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.Command:dpkg --remove --force-remove-reinstreq debconfResult:root@raspberrypi:/var/cache/apt/archives# dpkg-reconfigure debconf/usr/sbin/dpkg-reconfigure: debconf is broken or not fully installedroot@raspberrypi:/var/cache/apt/archives# sudo dpkg --configure -aSetting up libc6-dbg:armhf (2.19-18+deb8u10) ...dpkg: dependency problems prevent configuration of debconf-i18n:debconf-i18n depends on debconf (= 1.5.56+deb8u1); however:Version of debconf on system is 1.5.56.dpkg: error processing package debconf-i18n (--configure):dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of debconf-utils:debconf-utils depends on debconf (= 1.5.56+deb8u1); however:Version of debconf on system is 1.5.56.dpkg: error processing package debconf-utils (--configure):dependency problems - leaving unconfiguredSetting up python-software-properties (0.92.25debian1) ...Traceback (most recent call last):File /usr/bin/pycompile, line 35, in <module>    from debpython.version import SUPPORTED, debsorted, vrepr, \File /usr/share/python/debpython/version.py, line 24, in <module>    from ConfigParser import SafeConfigParserImportError: No module named 'ConfigParser'dpkg: error processing package python-software-properties (--configure):subprocess installed post-installation script returned error exit status 1Setting up perl-modules (5.20.2-3+deb8u8) ...Setting up perl (5.20.2-3+deb8u8) ...Setting up libtirpc1:armhf (0.2.5-1+deb8u1) ...Setting up libc-dev-bin (2.19-18+deb8u10) ...Setting up libperl5.20 (5.20.2-3+deb8u8) ...Setting up libc6-dev:armhf (2.19-18+deb8u10) ...Setting up rpcbind (0.2.1-6+deb8u2) ...insserv: warning: current start runlevel(s) (empty) of script `rpcbind' overrides LSB defaults (S).insserv: warning: current stop runlevel(s) (0 1 6 S) of script `rpcbind' overrides LSB defaults (0 1 6).Processing triggers for libc-bin (2.19-18+deb8u10) ...Errors were encountered while processing:debconf-i18ndebconf-utilspython-software-propertiesroot@raspberrypi:/var/cache/apt/archives# sudo apt-get install -fReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.root@raspberrypi:/var/cache/apt/archives# sudo dpkg --configure -adpkg: dependency problems prevent configuration of debconf-i18n:debconf-i18n depends on debconf (= 1.5.56+deb8u1); however:Version of debconf on system is 1.5.56.dpkg: error processing package debconf-i18n (--configure):dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of debconf-utils:debconf-utils depends on debconf (= 1.5.56+deb8u1); however:Version of debconf on system is 1.5.56.dpkg: error processing package debconf-utils (--configure):dependency problems - leaving unconfiguredSetting up python-software-properties (0.92.25debian1) ...Traceback (most recent call last):File /usr/bin/pycompile, line 35, in <module>    from debpython.version import SUPPORTED, debsorted, vrepr, \File /usr/share/python/debpython/version.py, line 24, in <module>    from ConfigParser import SafeConfigParserImportError: No module named 'ConfigParser'dpkg: error processing package python-software-properties (--configure):subprocess installed post-installation script returned error exit status 1Errors were encountered while processing:debconf-i18ndebconf-utilspython-software-propertiesroot@raspberrypi:/var/cache/apt/archives# apt-get -f install debconfReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.root@raspberrypi:/var/cache/apt/archives# cdroot@raspberrypi:~# apt-get -f install debconfReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.root@raspberrypi:~# dpkg-reconfigure debconf/usr/sbin/dpkg-reconfigure: debconf is broken or not fully installedroot@raspberrypi:~# apt-get install --reinstall debconfReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.root@raspberrypi:~# dpkg --remove --force-remove-reinstreq debconfdpkg: dependency problems prevent removal of debconf:tasksel depends on debconf (>= 0.5) | debconf-2.0; however:Package debconf is to be removed.Package debconf-2.0 is not installed.Package debconf which provides debconf-2.0 is to be removed.tasksel depends on debconf (>= 1.5.34) | cdebconf (>= 0.106); however:Package debconf is to be removed.Package cdebconf is not installed.tasksel depends on debconf (>= 0.5) | debconf-2.0; however:Package debconf is to be removed.Package debconf-2.0 is not installed.Package debconf which provides debconf-2.0 is to be removed.tasksel depends on debconf (>= 1.5.34) | cdebconf (>= 0.106); however:Package debconf is to be removed.Package cdebconf is not installed.locales depends on debconf (>= 0.5) | debconf-2.0; however:Package debconf is to be removed.Package debconf-2.0 is not installed.Package debconf which provides debconf-2.0 is to be removed.ca-certificates depends on debconf (>= 0.5) | debconf-2.0; however:Package debcondpkg: error processing package debconf (--remove):dependency problems - not removingErrors were encountered while processing:debconfCommand:dpkg --configure -aResult:root@raspberrypi:~# dpkg --configure -adpkg: dependency problems prevent configuration of debconf-i18n:debconf-i18n depends on debconf (= 1.5.56+deb8u1); however:Version of debconf on system is 1.5.56.dpkg: error processing package debconf-i18n (--configure):dependency problems - leaving unconfigureddpkg: dependency problems prevent configuration of debconf-utils:debconf-utils depends on debconf (= 1.5.56+deb8u1); however:Version of debconf on system is 1.5.56.dpkg: error processing package debconf-utils (--configure):dependency problems - leaving unconfiguredSetting up python-software-properties (0.92.25debian1) ...Traceback (most recent call last):File /usr/bin/pycompile, line 35, in <module>    from debpython.version import SUPPORTED, debsorted, vrepr, \File /usr/share/python/debpython/version.py, line 24, in <module>    from ConfigParser import SafeConfigParserImportError: No module named 'ConfigParser'dpkg: error processing package python-software-properties (--configure):subprocess installed post-installation script returned error exit status 1Errors were encountered while processing:debconf-i18ndebconf-utilspython-software-propertiesCommand:dpkg -CResult:The following packages are in a mess due to serious problems duringinstallation.  They must be reinstalled for them (and any packagesthat depend on them) to function properly:debconf              Debian configuration management systemThe following packages have been unpacked but not yet configured.They must be configured using dpkg --configure or the configuremenu option in dselect for them to work:debconf-i18n         full internationalization support for debconfdebconf-utils        debconf utilitiesThe following packages are only half configured, probably due to problemsconfiguring them the first time.  The configuration should be retried usingdpkg --configure <package> or the configure menu option in dselect:python-software-properties manage the repositories that you install software fCommand:apt-cache policyResult:root@raspberrypi:~# apt-cache policyPackage files:100 /var/lib/dpkg/status    release a=now500 http://archive.raspberrypi.org/debian/ jessie/ui armhf Packages    release o=Raspberry Pi Foundation,a=stable,n=jessie,l=Raspberry Pi Foundation,c=ui    origin archive.raspberrypi.org500 http://archive.raspberrypi.org/debian/ jessie/main armhf Packages    release o=Raspberry Pi Foundation,a=stable,n=jessie,l=Raspberry Pi Foundation,c=main    origin archive.raspberrypi.orgPinned packages:Command:apt-get -f installResult:root@raspberrypi:~# apt-get -f installReading package lists... DoneBuilding dependency treeReading state information... DoneE: The package debconf needs to be reinstalled, but I can't find an archive for it.Command:cat /etc/*-releaseResult:root@raspberrypi:~# cat /etc/*-releasePRETTY_NAME=Raspbian GNU/Linux 8 (jessie)NAME=Raspbian GNU/LinuxVERSION_ID=8VERSION=8 (jessie)ID=raspbianID_LIKE=debianHOME_URL=http://www.raspbian.org/SUPPORT_URL=http://www.raspbian.org/RaspbianForumsBUG_REPORT_URL=http://www.raspbian.org/RaspbianBugsCommand:apt-cache policy debconf debconf-i18n debconf-utilsResult:root@raspberrypi:~# apt-cache policy debconf debconf-i18n debconf-utilsdebconf:Installed: 1.5.56Candidate: 1.5.56Version table:*** 1.5.56 0        100 /var/lib/dpkg/statusdebconf-i18n:Installed: 1.5.56+deb8u1Candidate: 1.5.56+deb8u1Version table:*** 1.5.56+deb8u1 0        100 /var/lib/dpkg/statusdebconf-utils:Installed: 1.5.56+deb8u1Candidate: 1.5.56+deb8u1Version table:*** 1.5.56+deb8u1 0        100 /var/lib/dpkg/statusCommand:cat /etc/apt/sources.listResult:root@raspberrypi:~# cat /etc/apt/sources.list# Uncomment line below then 'apt-get update' to enable 'apt-get source'#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpiCommand:ls -Al /etc/apt/sources.list.d/Result:root@raspberrypi:~# ls -Al /etc/apt/sources.list.d/total 4-rw-r--r-- 1 root root 193 Apr 10 09:58 raspi.listCommand: cat /etc/apt/sources.list.d/raspi.listResult:root@raspberrypi:~# cat /etc/apt/sources.list.d/raspi.listdeb http://archive.raspberrypi.org/debian/ jessie main ui# Uncomment line below then 'apt-get update' to enable 'apt-get source'#deb-src http://archive.raspberrypi.org/debian/ jessie main uiAnyone have any clue what to try next?Would love not to have to reinstall the OS.
debconf is broken, can't install anything anymore
apt;raspberry pi;raspbian;dpkg;debconf
You're missing your main Raspbian archive, which should be in your sources.list:anthony@Kilby:~ $ cat /etc/apt/sources.listdeb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi# Uncomment line below then 'apt-get update' to enable 'apt-get source'deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpiWithout that, there is nowhere to download debconf 1.5.56+deb8u1 from.It's likely that adding the source back, then apt-get update, then apt-get install -f will be sufficient to fix it. If not, you'll need to manually download http://mirrordirector.raspbian.org/raspbian/pool/main/d/debconf/debconf_1.5.56+deb8u1_all.deb and install it with dpkg -i debconf_1.5.56+deb8u1_all.deb. Ways of manually downloading that include wget/curl or apt-get download debconf=1.5.56+deb8u1. The latter is easiest if it works.