donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 4:42 pm

Hello everyone. Not sure if my last post went through when I searched for my name only the original showed up. I'm desperately seeking assistance from the good folks that know more code than I do, as I've exhausted everything that I know and have researched.

After upgrading Raspberry Stretch to Buster, I waited over the weekend before I attempted to update and upgrade again. This time when I enter sudo apt-get update, this is the output that I receive:

Code: Select all

[email protected]:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
W: Skipping acquire of configured file 'staging/binary-i386/Packages' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'staging/binary-armhf/Packages' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'staging/i18n/Translation-en' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'staging/i18n/Translation-en_US' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'non-free/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'i386'
N: Skipping acquire of configured file 'rpi/binary-i386/Packages' as repository 'http://raspbian.raspberrypi.org/raspbian buster InRelease' doesn't support architecture 'i386'
I understand that Stretch and Buster are a 64bit OS now, but this is only one part of the issue.

When I enter 'sudo apt-get upgrade', I receive the following output:

Code: Select all

[email protected]:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up triggerhappy (0.5.0-1) ...
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.service: No such file or directory
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.socket: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/sbin/runlevel: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: could not determine current runlevel
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: initscript triggerhappy, action "start" failed.
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
dpkg: error processing package triggerhappy (--configure):
 installed triggerhappy package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 triggerhappy
E: Sub-process /usr/bin/dpkg returned an error code (1)
I've researched this issue, but have not found a suitable fix. I've also purchased a new SD Card with Noobs freshly installed on it. Before I swap the SD cards, I am hoping that I can fix what's here if for nothing else but the experience and understanding of the issue and how to resolve it.

Any help is greatly appreciated.

trejan
Posts: 417
Joined: Tue Jul 02, 2019 2:28 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 5:51 pm

donavyn wrote:
Wed Jul 17, 2019 4:42 pm
Hello everyone. Not sure if my last post went through when I searched for my name only the original showed up.
We replied to your previous post at https://www.raspberrypi.org/forums/view ... 8#p1500888

You need to show what instructions you used to upgrade as your install is in a weird state. It is looking for x86 packages so my guess is that you've used the wrong upgrade instructions that were actually for Debian on a PC.
donavyn wrote:
Wed Jul 17, 2019 4:42 pm
I understand that Stretch and Buster are a 64bit OS now, but this is only one part of the issue.
Still 32 bit.

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 6:07 pm

We replied to your previous post at https://www.raspberrypi.org/forums/view ... 8#p1500888
OMG I am so sorry that I missed that. I searched through my Inbox and the search settings here, all that showed up was my initial post.

You need to show what instructions you used to upgrade as your install is in a weird state. It is looking for x86 packages so my guess is that you've used the wrong upgrade instructions that were actually for Debian on a PC.
In my original post asking about an issue with upgrading prior to installing Buster, the person that replied to me gave me the following link, which I followed: https://www.raspberrypi.org/blog/buster ... -raspbian/

That's when all hell broke loose for me.

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 6:13 pm

...you've used the wrong upgrade instructions that were actually for Debian on a PC.
To answer that question, yes I have a physical RPI board, revision C.

It may be that I am using mRemoteNG to connect via SSH while at work, and using a DDNS from my Synology NAS to do that.

User avatar
rpdom
Posts: 14757
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 6:35 pm

Somehow you have made a change that makes apt try to down load PC versions (i386) of the software instead of the Pi versions (armhf).

Can you post the contents of the files you changed in /etc/apt/ ?

Also, at any time have you done any dpkg commands that might have mentioned architecture?

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 6:55 pm

Can you post the contents of the files you changed in /etc/apt/
sources.list

Code: Select all

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
# deb http://mirror.us.leaseweb.net/raspbian/raspbian/ jessie main contrib non-free rpi
/etc/apt/sources.list.d/raspi.list

Code: Select all

deb http://archive.raspberrypi.org/debian/ buster main ui staging
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ stretch main ui
Also, at any time have you done any dpkg commands that might have mentioned architecture?
I do not recall doing anything to architecture or to dpkg at all.

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 6:59 pm

With that being said, should I follow the instructions at https://superuser.com/questions/714391/ ... stallation

to remove them?

This result came up after Google searching for 'raspbian remove i386 packages'

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 7:06 pm

Following the second result from the Google search, https://wiki.debian.org/Multiarch/HOWTO, and exploring the following path:
/var/lib/dpkg/

I used nano to open 'arch'

The contents are:
armhf
i386


According to the steps, I should issue:

Code: Select all

apt-get purge ".*:<arch>"
Would that be correct?

epoch1970
Posts: 3360
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 7:07 pm

This one https://raspberrypi.stackexchange.com/q ... from-my-pi
says yes I think.

Fingers crossed...
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 7:15 pm

says yes I think.

Fingers crossed...
After pulling the trigger, I issued sudo dpkg --remove-architecture i386, this is the output:

Code: Select all

[email protected]:~ $ sudo dpkg --remove-architecture i386
Can't locate Term/ANSIColor.pm in @INC (you may need to install the Term::ANSIColor module) (@INC contains: /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at /usr/share/perl5/Dpkg/ErrorHandling.pm line 48.
BEGIN failed--compilation aborted at /usr/share/perl5/Dpkg/ErrorHandling.pm line 48.
Compilation failed in require at /usr/share/perl5/Dpkg/Arch.pm line 102.
BEGIN failed--compilation aborted at /usr/share/perl5/Dpkg/Arch.pm line 102.
Compilation failed in require at /usr/share/pkg-config-dpkghook line 14.
BEGIN failed--compilation aborted at /usr/share/pkg-config-dpkghook line 14.
dpkg: error: error executing hook 'if { test "$DPKG_HOOK_ACTION" = add-architecture || test "$DPKG_HOOK_ACTION" = remove-architecture; } && test -x /usr/share/pkg-config-dpkghook; then /usr/share/pkg-config-dpkghook update; fi', exit code 512
However, when I attempt to run dpkg --print-foreign-architectures, I no longer see the i386 as a result.

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 7:16 pm

Now, when I issue the command 'sudo apt-get update', I receive the following output:

Code: Select all

[email protected]:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
W: Skipping acquire of configured file 'staging/binary-armhf/Packages' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'staging/i18n/Translation-en' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'staging/i18n/Translation-en_US' as repository 'http://archive.raspberrypi.org/debian buster InRelease' doesn't have the component 'staging' (component misspelt in sources.list?)

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 7:25 pm

I following this link: https://www.raspberrypi.org/forums/view ... p?t=243492
take 'staging' out of your raspi.list
I did, saved and re-issued sudo apt-get update which looked wonderful:

Code: Select all

[email protected]:/etc/apt/sources.list.d $ sudo apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Now that part seems to be fixed, this is the output of sudo apt-get upgrade:

Code: Select all

[email protected]:/etc/apt/sources.list.d $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up triggerhappy (0.5.0-1) ...
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.service: No such file or directory
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.socket: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/sbin/runlevel: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: could not determine current runlevel
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: initscript triggerhappy, action "start" failed.
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
dpkg: error processing package triggerhappy (--configure):
 installed triggerhappy package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 triggerhappy
E: Sub-process /usr/bin/dpkg returned an error code (1)
So far so good, guys. It's getting fixed and I'm learning a lot from your help ... lead me on, Jedi Masters =)

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 8:14 pm

Triggerhappy seems to be part of Python?

I noticed when I ran:

Code: Select all

sudo apt-get install -f --reinstall python
That the error messages about Triggerhappy were present:

Code: Select all

[email protected]:/etc/triggerhappy/triggers.d $ sudo apt-get install -f --reinstall python
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 22.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrors.syringanetworks.net/raspbian/raspbian buster/main armhf python armhf 2.7.16-1 [22.8 kB]
Fetched 22.8 kB in 1s (31.4 kB/s)
(Reading database ... 8574 files and directories currently installed.)
Preparing to unpack .../python_2.7.16-1_armhf.deb ...
Unpacking python (2.7.16-1) over (2.7.16-1) ...
Setting up triggerhappy (0.5.0-1) ...
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.service: No such file or directory
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.socket: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/sbin/runlevel: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: could not determine current runlevel
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: initscript triggerhappy, action "start" failed.
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
dpkg: error processing package triggerhappy (--configure):
 installed triggerhappy package post-installation script subprocess returned error exit status 127
Setting up python (2.7.16-1) ...
Errors were encountered while processing:
 triggerhappy
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried running sudo apt autoremove to remove the broken package, which provided:

Code: Select all

[email protected]:/etc/triggerhappy/triggers.d $ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up triggerhappy (0.5.0-1) ...
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.service: No such file or directory
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.socket: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/sbin/runlevel: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: could not determine current runlevel
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: initscript triggerhappy, action "start" failed.
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
dpkg: error processing package triggerhappy (--configure):
 installed triggerhappy package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 triggerhappy
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried running sudo apt-get update --fix-missing, and received which resulted normally. I attempted to issue a dist-upgrade command and received this output:

Code: Select all

[email protected]:/etc/triggerhappy/triggers.d $ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up triggerhappy (0.5.0-1) ...
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.service: No such file or directory
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.socket: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/sbin/runlevel: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: could not determine current runlevel
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: initscript triggerhappy, action "start" failed.
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
dpkg: error processing package triggerhappy (--configure):
 installed triggerhappy package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 triggerhappy
E: Sub-process /usr/bin/dpkg returned an error code (1)

epoch1970
Posts: 3360
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 8:34 pm

I think triggerhappy started installing before apt encountered grave problems. So now every time it has the chance, apt tries to finish the job...

I do not know precisely how to fix that.

This is what I would do:
- "apt-get --no-act remove triggerhappy"
- If the output is terribly long or if a package with a name remotely sounding like "libc" is listed, stop there
- Otherwise go ahead with actual removal
- Then "apt-get update" to see if apt is happy now
- If it is, "apt-get install triggerhappy" to bring the package back.

I suggest you wait for others to chime in, I do not know apt very well at all.
HTH
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

bls
Posts: 181
Joined: Mon Oct 22, 2018 11:25 pm

Re: apt-get update/upgrade literally broke post Buster install

Wed Jul 17, 2019 11:14 pm

Here's what I do with Trigger happy when I create a new SD card. I like to keep things around, but disabled, since you never know when inspiration or need might strike.

Code: Select all

echo "Disabling TriggerHappy..."
mv /usr/sbin/thd /usr/sbin/.thd 
systemctl disable triggerhappy.service
systemctl disable triggerhappy.socket
# Eliminate thd.socket journalctl errors
[ -f /lib/udev/rules.d/60-triggerhappy.rules ] && mv /lib/udev/rules.d/60-triggerhappy.rules /lib/udev/rules.d/.60-triggerhappy.rules

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 3:29 pm

Here is the output for the removal simulation:

Code: Select all

[email protected]:~ $ apt-get --no-act remove triggerhappy
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  triggerhappy
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Remv triggerhappy [0.5.0-1]
[email protected]:~ $
Do you think that it's safe to issue the sudo command and then reinstall?

Here's what I do with Trigger happy when I create a new SD card. I like to keep things around, but disabled, since you never know when inspiration or need might strike.
So your code is basically disabling Triggerhappy?

Do I copy the code to a bash file and run that, or can it run by entering each individual line, sans the 'echo/print' statement on line 1?

epoch1970
Posts: 3360
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 3:53 pm

donavyn wrote:
Thu Jul 18, 2019 3:29 pm
Do you think that it's safe to issue the sudo command and then reinstall?
I would say removing it looks safe. Successful and useful, we shall see...
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 3:54 pm

In an attempt to purge or remove triggerhappy. results in the following output:

Code: Select all

[email protected]:~ $ sudo apt-get remove triggerhappy
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  triggerhappy
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 97.3 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 8571 files and directories currently installed.)
Removing triggerhappy (0.5.0-1) ...
/sbin/runlevel: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: could not determine current runlevel
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
invoke-rc.d: initscript triggerhappy, action "stop" failed.
dpkg: error processing package triggerhappy (--remove):
 installed triggerhappy package pre-removal script subprocess returned error exit status 127
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.service: No such file or directory
/bin/systemctl: error while loading shared libraries: libidn.so.11: cannot open shared object file: No such file or directory
/usr/bin/deb-systemd-helper: error: systemctl preset failed on triggerhappy.socket: No such file or directory
Errors were encountered while processing:
 triggerhappy
E: Sub-process /usr/bin/dpkg returned an error code (1)

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 3:58 pm

Running the simulation for the missing package, results in:

Code: Select all

[email protected]:~ $ apt-get --no-act remove libidn.so.11
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libidn.so.11
E: Couldn't find any package by glob 'libidn.so.11'
E: Couldn't find any package by regex 'libidn.so.11'
Why is Triggerhappy looking for a program/library that doesn't exist? In an attempt to apt-get the package also results in an error in locating the package.

epoch1970
Posts: 3360
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 4:16 pm

Yes, apt is looking for i386 stuff that isn't there/wasn't installed (fortunately).
Sorry it didn't work..
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

User avatar
rpdom
Posts: 14757
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 4:30 pm

The package name is libidn11, not libidn.so.11 that is the name of the file.

donavyn
Posts: 22
Joined: Sun Jun 03, 2018 10:40 pm

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 4:41 pm

Here's an interesting development:

I 'simulated' the removal of the package, libidn11. Output resulted in:

Code: Select all

[email protected]:/etc/apt/apt.conf.d $ apt-get --no-act install libidn11
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libidn11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Inst libidn11 (1.33-2.2 Raspbian:stable [armhf])
Conf libidn11 (1.33-2.2 Raspbian:stable [armhf])
Conf triggerhappy (0.5.0-1 Raspbian:stable [armhf])
Nice and clean, right?

So I installed it:

Code: Select all

[email protected]:/etc/apt/apt.conf.d $ sudo apt-get install libidn11
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  libidn11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 113 kB of archives.
After this operation, 301 kB of additional disk space will be used.
Get:1 http://mirrors.syringanetworks.net/raspbian/raspbian buster/main armhf libidn11 armhf 1.33-2.2 [113 kB]
Fetched 113 kB in 1s (106 kB/s)
Selecting previously unselected package libidn11:armhf.
(Reading database ... 8574 files and directories currently installed.)
Preparing to unpack .../libidn11_1.33-2.2_armhf.deb ...
Unpacking libidn11:armhf (1.33-2.2) ...
Setting up triggerhappy (0.5.0-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/triggerhappy.service → /lib/systemd/system/triggerhappy.service.
Created symlink /etc/systemd/system/sockets.target.wants/triggerhappy.socket → /lib/systemd/system/triggerhappy.socket.
Setting up libidn11:armhf (1.33-2.2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Still, nice and clean.

I took the chance and ran update, and then upgrade:

Code: Select all

[email protected]:/etc/apt/apt.conf.d $ sudo apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
[email protected]:/etc/apt/apt.conf.d $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[email protected]:/etc/apt/apt.conf.d $ sudo apt-get full-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No more errors about the library not being installed, which in my mind is great!

Should I be concerned that there are no updates to upgrade to, or do we call this a victory?

User avatar
rpdom
Posts: 14757
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: apt-get update/upgrade literally broke post Buster install

Thu Jul 18, 2019 4:42 pm

It sounds like a win to me. :)

Return to “Troubleshooting”