User avatar
realies
Posts: 43
Joined: Fri Jul 18, 2014 9:27 am

Damaging dpkg on wifi usage

Fri Jul 17, 2015 2:01 am

Hello, I've just corrupted the dpkg status file and somehow decided to follow an internet guide to delete all of the files in /var/lib/dpkg/ and follow an apt-get update to regenerate them, but this has been a terrible mistake. I've tried a couple of things but when I try to install a new package I end up in a dead road every time.

Any idea of easy fix for dpkg? Here's a crash log...
An interesting point is that if I type debconf in the console I get the output from the binary, but the system thinks it is not installed, which I guess is related to the avaliable packages file...

Code: Select all

[email protected] ~ $ sudo apt-get install wvdial
Reading package lists... Done
Building dependency tree... 50%
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  adduser apt-utils coreutils dbus debconf debconf-i18n debianutils dpkg e2fslibs e2fsprogs gcc-4.8-base initscripts insserv libacl1 libapt-inst1.5 libapt-pkg4.12 libattr1
  libblkid1 libbz2-1.0 libc-bin libc6 libcap2 libcomerr2 libdb5.1 libdbus-1-3 libexpat1 libgcc1 libgpm2 liblocale-gettext-perl liblzma5 libncurses5 libncursesw5 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libpcap0.8 libpng12-0 libprocps0 libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2 libss2 libssl1.0.0 libstdc++6
  libsystemd-login0 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo5 libuniconf4.6 libustr-1.0-1 libuuid1 libwvstreams4.6-base libwvstreams4.6-extras
  lsb-base multiarch-support passwd perl-base ppp procps psmisc sensible-utils sysv-rc sysvinit-utils tar tzdata util-linux uuid-runtime zlib1g
Suggested packages:
  perl-modules xz-utils dbus-x11 debconf-doc debconf-utils whiptail dialog gnome-utils libterm-readline-gnu-perl libgtk2-perl libnet-ldap-perl libqtgui4-perl libqtcore4-perl apt
  gpart parted e2fsck-static bootchart2 glibc-doc locales gpm libpam-doc sysv-rc-conf bum bootlogd sash bzip2 ncompress util-linux-locales kbd console-tools dosfstools
The following NEW packages will be installed:
  adduser apt-utils coreutils dbus debconf debconf-i18n debianutils dpkg e2fslibs e2fsprogs gcc-4.8-base initscripts insserv libacl1 libapt-inst1.5 libapt-pkg4.12 libattr1
  libblkid1 libbz2-1.0 libc-bin libc6 libcap2 libcomerr2 libdb5.1 libdbus-1-3 libexpat1 libgcc1 libgpm2 liblocale-gettext-perl liblzma5 libncurses5 libncursesw5 libpam-modules
  libpam-modules-bin libpam-runtime libpam0g libpcap0.8 libpng12-0 libprocps0 libselinux1 libsemanage-common libsemanage1 libsepol1 libslang2 libss2 libssl1.0.0 libstdc++6
  libsystemd-login0 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtinfo5 libuniconf4.6 libustr-1.0-1 libuuid1 libwvstreams4.6-base libwvstreams4.6-extras
  lsb-base multiarch-support passwd perl-base ppp procps psmisc sensible-utils sysv-rc sysvinit-utils tar tzdata util-linux uuid-runtime wvdial zlib1g
0 upgraded, 73 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.6 MB of archives.
After this operation, 75.1 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian/ wheezy/main gcc-4.8-base armhf 4.8.2-21~rpi3rpi1 [154 kB]
Get:2 http://archive.raspberrypi.org/debian/ wheezy/main libgcc1 armhf 1:4.8.2-21~rpi3rpi1 [54.2 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc-bin armhf 2.13-38+rpi2+deb7u8 [1,206 kB]
Get:4 http://archive.raspberrypi.org/debian/ wheezy/main libstdc++6 armhf 4.8.2-21~rpi3rpi1 [299 kB]
Get:5 http://mirrordirector.raspbian.org/raspbian/ wheezy/main multiarch-support armhf 2.13-38+rpi2+deb7u8 [152 kB]
Get:6 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libc6 armhf 2.13-38+rpi2+deb7u8 [4,104 kB]
Get:7 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libbz2-1.0 armhf 1.0.6-4 [47.4 kB]                                                                                 
Get:8 http://mirrordirector.raspbian.org/raspbian/ wheezy/main liblzma5 armhf 5.1.1alpha+20120614-2 [199 kB]                                                                      
Get:9 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libselinux1 armhf 2.1.9-5 [84.1 kB]                                                                                
Get:10 http://mirrordirector.raspbian.org/raspbian/ wheezy/main zlib1g armhf 1:1.2.7.dfsg-13 [87.2 kB]                                                                            
Get:11 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tar armhf 1.26+dfsg-0.1 [966 kB]                                                                                  
Get:12 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dpkg armhf 1.16.16+rpi1 [2,599 kB]                                                                                
Get:13 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libattr1 armhf 1:2.4.46-8 [18.5 kB]                                                                               
Get:14 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libacl1 armhf 2.2.51-8 [27.7 kB]                                                                                  
Get:15 http://mirrordirector.raspbian.org/raspbian/ wheezy/main coreutils armhf 8.13-3.5 [5,244 kB]                                                                               
Get:16 http://mirrordirector.raspbian.org/raspbian/ wheezy/main sensible-utils all 0.0.7 [8,850 B]                                                                                
Get:17 http://mirrordirector.raspbian.org/raspbian/ wheezy/main debianutils armhf 4.3.2 [77.6 kB]                                                                                 
Get:18 http://mirrordirector.raspbian.org/raspbian/ wheezy/main e2fslibs armhf 1.42.5-1.1+deb7u1 [186 kB]                                                                         
Get:19 http://mirrordirector.raspbian.org/raspbian/ wheezy/main perl-base armhf 5.14.2-21+rpi2+deb7u2 [1,473 kB]                                                                  
Get:20 http://mirrordirector.raspbian.org/raspbian/ wheezy/main debconf all 1.5.49 [171 kB]                                                                                       
Get:21 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpam0g armhf 1.1.3-7.1 [122 kB]                                                                                 
Get:22 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsemanage-common all 2.1.6-6 [23.2 kB]                                                                          
Get:23 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsepol1 armhf 2.1.4-3 [126 kB]                                                                                  
Get:24 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libustr-1.0-1 armhf 1.0.4-3 [72.4 kB]                                                                             
Get:25 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsemanage1 armhf 2.1.6-6 [89.1 kB]                                                                              
Get:26 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdb5.1 armhf 5.1.29-5 [648 kB]                                                                                  
Get:27 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpam-modules-bin armhf 1.1.3-7.1 [100 kB]                                                                       
Get:28 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpam-modules armhf 1.1.3-7.1 [324 kB]                                                                           
Get:29 http://mirrordirector.raspbian.org/raspbian/ wheezy/main passwd armhf 1:4.1.5.1-1 [1,173 kB]                                                                               
Get:30 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libuuid1 armhf 2.20.1-5.3 [57.7 kB]                                                                               
Get:31 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libblkid1 armhf 2.20.1-5.3 [119 kB]                                                                               
Get:32 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcomerr2 armhf 1.42.5-1.1+deb7u1 [55.0 kB]                                                                      
Get:33 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libss2 armhf 1.42.5-1.1+deb7u1 [59.3 kB]                                                                          
Get:34 http://mirrordirector.raspbian.org/raspbian/ wheezy/main lsb-base all 4.1+Debian8+rpi1+deb7u1 [26.9 kB]                                                                    
Get:35 http://mirrordirector.raspbian.org/raspbian/ wheezy/main tzdata all 2014j-0wheezy1 [442 kB]                                                                                
Get:36 http://mirrordirector.raspbian.org/raspbian/ wheezy/main sysvinit-utils armhf 2.88dsf-41+deb7u1 [94.3 kB]                                                                  
Get:37 http://mirrordirector.raspbian.org/raspbian/ wheezy/main insserv armhf 1.14.0-5 [63.8 kB]                                                                                  
Get:38 http://mirrordirector.raspbian.org/raspbian/ wheezy/main sysv-rc all 2.88dsf-41+deb7u1 [81.8 kB]                                                                           
Get:39 http://mirrordirector.raspbian.org/raspbian/ wheezy/main initscripts armhf 2.88dsf-41+deb7u1 [92.1 kB]                                                                     
Get:40 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtinfo5 armhf 5.9-10 [264 kB]                                                                                   
Get:41 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libncurses5 armhf 5.9-10 [94.6 kB]                                                                                
Get:42 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libslang2 armhf 2.2.4-15 [515 kB]                                                                                 
Get:43 http://mirrordirector.raspbian.org/raspbian/ wheezy/main util-linux armhf 2.20.1-5.3 [669 kB]                                                                              
Get:44 http://mirrordirector.raspbian.org/raspbian/ wheezy/main e2fsprogs armhf 1.42.5-1.1+deb7u1 [984 kB]                                                                        
Get:45 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libapt-pkg4.12 armhf 0.9.7.9+rpi1+deb7u7 [859 kB]                                                                 
Get:46 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libapt-inst1.5 armhf 0.9.7.9+rpi1+deb7u7 [164 kB]                                                                 
Get:47 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libncursesw5 armhf 5.9-10 [119 kB]                                                                                
Get:48 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libprocps0 armhf 1:3.3.3-3 [56.1 kB]                                                                              
Get:49 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libssl1.0.0 armhf 1.0.1e-2+rvt+deb7u17 [1,053 kB]                                                                 
Get:50 http://mirrordirector.raspbian.org/raspbian/ wheezy/main liblocale-gettext-perl armhf 1.05-7 [19.6 kB]                                                                     
Get:51 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libcap2 armhf 1:2.22-1.2 [12.5 kB]                                                                                
Get:52 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libgpm2 armhf 1.20.4-6 [34.9 kB]                                                                                  
Get:53 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libdbus-1-3 armhf 1.6.8-1+deb7u6 [154 kB]                                                                         
Get:54 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libexpat1 armhf 2.1.0-1+deb7u1 [116 kB]                                                                           
Get:55 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpcap0.8 armhf 1.3.0-1 [135 kB]                                                                                 
Get:56 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpng12-0 armhf 1.2.49-1 [179 kB]                                                                                
Get:57 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libsystemd-login0 armhf 44-11+deb7u4 [28.2 kB]                                                                    
Get:58 http://mirrordirector.raspbian.org/raspbian/ wheezy/main adduser all 3.113+nmu3 [264 kB]                                                                                   
Get:59 http://mirrordirector.raspbian.org/raspbian/ wheezy/main apt-utils armhf 0.9.7.9+rpi1+deb7u7 [372 kB]                                                                      
Get:60 http://mirrordirector.raspbian.org/raspbian/ wheezy/main procps armhf 1:3.3.3-3 [249 kB]                                                                                   
Get:61 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtext-iconv-perl armhf 1.7-5 [16.7 kB]                                                                          
Get:62 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtext-charwidth-perl armhf 0.04-7 [10.6 kB]                                                                     
Get:63 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libtext-wrapi18n-perl all 0.06-7 [8,980 B]                                                                        
Get:64 http://mirrordirector.raspbian.org/raspbian/ wheezy/main debconf-i18n all 1.5.49 [237 kB]                                                                                  
Get:65 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libpam-runtime all 1.1.3-7.1 [228 kB]                                                                             
Get:66 http://mirrordirector.raspbian.org/raspbian/ wheezy/main dbus armhf 1.6.8-1+deb7u6 [353 kB]                                                                                
Get:67 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libwvstreams4.6-base armhf 4.6.1-5 [230 kB]                                                                       
Get:68 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libwvstreams4.6-extras armhf 4.6.1-5 [436 kB]                                                                     
Get:69 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libuniconf4.6 armhf 4.6.1-5 [163 kB]                                                                              
Get:70 http://mirrordirector.raspbian.org/raspbian/ wheezy/main ppp armhf 2.4.5-5.1+deb7u2 [351 kB]                                                                               
Get:71 http://mirrordirector.raspbian.org/raspbian/ wheezy/main psmisc armhf 22.19-1+deb7u1 [132 kB]                                                                              
Get:72 http://mirrordirector.raspbian.org/raspbian/ wheezy/main uuid-runtime armhf 2.20.1-5.3 [60.1 kB]                                                                           
Get:73 http://mirrordirector.raspbian.org/raspbian/ wheezy/main wvdial armhf 1.61-4.1 [107 kB]                                                                                    
Fetched 29.6 MB in 30s (966 kB/s)                                                                                                                                                 
E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 41%E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 82%E: Cannot get debconf version. Is debconf installed?
debconf: apt-extracttemplates failed: No such file or directory
Extracting templates from packages: 100%
Selecting previously unselected package libc-bin.
(Reading database ... 47 files and directories currently installed.)
Unpacking libc-bin (from .../libc-bin_2.13-38+rpi2+deb7u8_armhf.deb) ...
Setting up libc-bin (2.13-38+rpi2+deb7u8) ...
Selecting previously unselected package gcc-4.8-base:armhf.
(Reading database ... 118 files and directories currently installed.)
Unpacking gcc-4.8-base:armhf (from .../gcc-4.8-base_4.8.2-21~rpi3rpi1_armhf.deb) ...
Setting up gcc-4.8-base:armhf (4.8.2-21~rpi3rpi1) ...
Selecting previously unselected package multiarch-support.
(Reading database ... 127 files and directories currently installed.)
Unpacking multiarch-support (from .../multiarch-support_2.13-38+rpi2+deb7u8_armhf.deb) ...
Selecting previously unselected package libc6:armhf.
Unpacking libc6:armhf (from .../libc6_2.13-38+rpi2+deb7u8_armhf.deb) ...
Selecting previously unselected package libgcc1:armhf.
dpkg: regarding .../libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb containing libgcc1:armhf, pre-dependency problem:
 libgcc1 pre-depends on multiarch-support
  multiarch-support is unpacked, but has never been configured.

dpkg: error processing /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb (--unpack):
 pre-dependency problem - not installing libgcc1:armhf
Errors were encountered while processing:
 /var/cache/apt/archives/libgcc1_1%3a4.8.2-21~rpi3rpi1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Return to “Advanced users”