schouwb
Posts: 1
Joined: Thu Jul 18, 2019 9:28 am

py3clean Illegal Instruction

Thu Jul 18, 2019 10:37 am

This morning I tried to install nagios3 on my Raspbian Pi 3.

This is the error I get:

Code: Select all

pi@raspberrypi:~ $ sudo aptitude install nagios3
nagios3 is already installed at the requested version (3.5.1.dfsg-2.2)
nagios3 is already installed at the requested version (3.5.1.dfsg-2.2)
The following partially installed packages will be configured:
  apt-listchanges python3-apt
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Illegal instruction
E: Sub-process /usr/bin/apt-listchanges --apt || test $? -lt 10 returned an error code (1)
E: Failure running script /usr/bin/apt-listchanges --apt || test $? -lt 10

After looking around on the interwebs, I found this page:
https://askubuntu.com/questions/438345/ ... -installed

This leads me to the following file

Code: Select all

/var/lib/dpkg/info/apt-listchanges.prerm
This gets executed but allways ends with:

Code: Select all

Illegal instruction
When examining this, the py3clean command is called. This allways gives me "Illegal instruction".
When running this on one of my other pi's, this command works normally.

Does anyone have any idea?
I am starting to think that my SD-card might be corrupted.

Return to “Troubleshooting”