Update fails

Expected Behaviour:

Pi-hole should update to the latest version when using pihole -up
Current Versions installed:

  • Raspbian v10
  • Pi-hole v5.8.1
  • FTL v5.13
  • Webinterface v5.10.1

Hardware:

  • Raspberry Pi3b+

Actual Behaviour:

pihole -up fails with following message:

Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 36, in <module>
    import ALCLog
ModuleNotFoundError: No module named 'ALCLog'
(Reading database ... 41476 files and directories currently installed.)
Preparing to unpack .../dialog_1.3-20190211-1_armhf.deb ...
Unpacking dialog (1.3-20190211-1) ...
dpkg: error processing archive /var/cache/apt/archives/dialog_1.3-20190211-1_armhf.deb (--unpack):
 unable to stat './usr/share/doc' (which I was about to install): Structure needs cleaning
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/dialog_1.3-20190211-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Full Install log:

 pihole -up

  [✓] Root user check

        .;;,.
        .ccccc:,.
         :cccclll:.      ..,,
          :ccccclll.   ;ooodc
           'ccll:;ll .oooodc
             .;cll.;;looo:.
                 .. ','.
                .',,,,,,'.
              .',,,,,,,,,,.
            .',,,,,,,,,,,,....
          ....''',,,,,,,'.......
        .........  ....  .........
        ..........      ..........
        ..........      ..........
        .........  ....  .........
          ........,,,,,,,'......
            ....',,,,,,,,,,,,.
               .',,,,,,,,,'.
                .',,,,,,'.
                  ..'''.

  [i] SELinux not detected
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.3.27-1~deb10u1

  [✓] Checking apt-get for upgraded packages... 137 updates available
  [i] It is recommended to update your OS after installing the Pi-hole!

  [i] Checking for / installing Required dependencies for OS Check...
  [✓] Checking for grep
  [✓] Checking for dnsutils

  [✓] Supported OS detected
  [i] Checking for / installing Required dependencies for this install script...
  [✓] Checking for git
  [✓] Checking for iproute2
  [i] Checking for dialog (will be installed)
  [✓] Checking for ca-certificates
  [i] Waiting for package manager to finish (up to 30 seconds)
  [i] Processing apt-get install(s) for: dialog, please wait...

Traceback (most recent call last):
  File "/usr/bin/apt-listchanges", line 36, in <module>
    import ALCLog
ModuleNotFoundError: No module named 'ALCLog'
(Reading database ... 41476 files and directories currently installed.)
Preparing to unpack .../dialog_1.3-20190211-1_armhf.deb ...
Unpacking dialog (1.3-20190211-1) ...
dpkg: error processing archive /var/cache/apt/archives/dialog_1.3-20190211-1_armhf.deb (--unpack):
 unable to stat './usr/share/doc' (which I was about to install): Structure needs cleaning
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/dialog_1.3-20190211-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Debug Token:

f9b4n9kF

Try kali linux - Issues with apt-get upgrade - Unix & Linux Stack Exchange

I was trying this right now, unfortunately it fails as well:

sudo dpkg --remove apt-listchanges
(Reading database ... 41476 files and directories currently installed.)
Removing apt-listchanges (3.19) ...
dpkg: error processing package apt-listchanges (--remove):
 unable to securely remove '/usr/share/doc/apt-listchanges/copyright.dpkg-tmp': Structure needs cleaning
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
 apt-listchanges

Searching for this message reveals no good. It looks like you have file-system errors. Probably the best would be to take a backup and start from scratch. (Depending on what else is running on your device you might get away with a file system check....). If you run on SD-Card you should consider swapping this as well.

I think I just crashed it with: sudo touch /forcefsck :upside_down_face:
Will do a fresh install then, thank you!

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