[Solved]problem installing any software Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
ghezzia
Posts: 15
Joined: Fri Nov 19, 2021 4:30 pm

[Solved]problem installing any software

Post by ghezzia »

good morning everybody,
I'm new in this community and new in the dietpi world.
I'm using a pi zero W on which I installed dietpi and until here everything went well.
I'm trying now to install some extra software from the list but, LXDE a part, all the software I'm trying to install give me back an error like this one:

Code: Select all

APT install for: g++ make automake                                                                                     
                                          │  - Command: apt-get -qq --allow-change-held-packages install g++ make automake                                         
                                          │  - Exit code: 100                                                                                                      
                                          │  - DietPi version: v7.8.2 (MichaIng/master) | HW_MODEL: 1 | HW_ARCH: 1 | DISTRO: 6                                     
                                          │  - Image creator: DietPi Core Team                                                                                     
                                          │  - Pre-image: from scratch                                                                                             
                                          │  - Error log:                                                                                                          
                                          │ debconf: delaying package configuration, since apt-utils is not installed                                              
                                          │ Selecting previously unselected package libsigsegv2:armhf.^M                                                           
                                          │ (Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading datab 
                                          │ ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Reading database ... 35%^M(Reading database ... 40%^M( 
                                          │ database ... 45%^M(Reading database ... 50%^M(Reading database ... 55%^M(Reading database ... 60%^M(Reading database . 
                                          │ (Reading database ... 70%^M(Reading database ... 75%^M(Reading database ... 80%^M(Reading database ... 85%^M(Reading   
                                          │ database ... 90%^M(Reading database ... 95%^M(Reading database ... 100%^M(Reading database ... 50669 files and directo 
                                          │ currently installed.)^M                                                                                                
                                          │ Preparing to unpack .../00-libsigsegv2_2.13-1_armhf.deb ...^M                                                          
                                          │ Unpacking libsigsegv2:armhf (2.13-1) ...^M                                                                             
                                          │ Selecting previously unselected package m4.^M                                                                          
                                          │ Preparing to unpack .../01-m4_1.4.18-5_armhf.deb ...^M                                                                 
                                          │ Unpacking m4 (1.4.18-5) ...^M                                                                                          
                                          │ Selecting previously unselected package autoconf.^M                                                                    
                                          │ Preparing to unpack .../02-autoconf_2.69-14_all.deb ...^M                                                              
                                          │ Unpacking autoconf (2.69-14) ...^M                                                                                     
                                          │ Selecting previously unselected package autotools-dev.^M                                                               
                                          │ Preparing to unpack .../03-autotools-dev_20180224.1+nmu1_all.deb ...^M                                                 
                                          │ Unpacking autotools-dev (20180224.1+nmu1) ...^M                                                                        
                                          │ Selecting previously unselected package automake.^M                                                                    
                                          │ Preparing to unpack .../04-automake_1%3a1.16.3-2_all.deb ...^M                                                         
                                          │ Unpacking automake (1:1.16.3-2) ...^M                                                                                  
                                          │ Selecting previously unselected package binutils-common:armhf.^M                                                       
                                          │ Preparing to unpack .../05-binutils-common_2.35.2-2+rpi1_armhf.deb ...^M                                               
                                          │ Unpacking binutils-common:armhf (2.35.2-2+rpi1) ...^M                                                                  
                                          │ Selecting previously unselected package libbinutils:armhf.^M                                                           
                                          │ Preparing to unpack .../06-libbinutils_2.35.2-2+rpi1_armhf.deb ...^M                                                   
                                          │ Unpacking libbinutils:armhf (2.35.2-2+rpi1) ...^M                                                                      
                                          │ Selecting previously unselected package libctf-nobfd0:armhf.^M                                                         
                                          │ Preparing to unpack .../07-libctf-nobfd0_2.35.2-2+rpi1_armhf.deb ...^M                                                 
                                          │ Unpacking libctf-nobfd0:armhf (2.35.2-2+rpi1) ...^M                                                                    
                                          │ Selecting previously unselected package libctf0:armhf.^M                                                               
                                          │ Preparing to unpack .../08-libctf0_2.35.2-2+rpi1_armhf.deb ...^M                                                       
                                          │ Unpacking libctf0:armhf (2.35.2-2+rpi1) ...^M                                                                          
                                          │ Selecting previously unselected package binutils-arm-linux-gnueabihf.^M                                                
                                          │ Preparing to unpack .../09-binutils-arm-linux-gnueabihf_2.35.2-2+rpi1_armhf.deb ...^M                                  
                                          │ Unpacking binutils-arm-linux-gnueabihf (2.35.2-2+rpi1) ...^M                                                           
                                          │ Selecting previously unselected package binutils.^M                                                                    
                                          │ Preparing to unpack .../10-binutils_2.35.2-2+rpi1_armhf.deb ...^M     
do you know what's going wrong?
I tried with MYSQL, GRAFANA, MOSQUITTO, and NODE-RED. All the same issue.
If you need some further detail let me know.
Thanks in advance
Alex
Last edited by ghezzia on Sat Nov 20, 2021 5:53 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: problem installing any software

Post by Joulinar »

Pls could you scroll up on the SSH terminal. Above the blue error box. There should be the error message.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ghezzia
Posts: 15
Joined: Fri Nov 19, 2021 4:30 pm

Re: problem installing any software

Post by ghezzia »

This is what happens after I launch the command:

Code: Select all


[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
[  OK  ] DietPi-Software | Free space check: path=/ | available=3739 MiB | required=500 MiB
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Software | Checking network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] Network time sync | Completed
[ SUB1 ] DietPi-Services > unmask 
[  OK  ] DietPi-Services | unmask : apache2
[  OK  ] DietPi-Services | unmask : lighttpd
[  OK  ] DietPi-Services | unmask : mosquitto
[  OK  ] DietPi-Services | unmask : grafana-server
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : grafana-server
[  OK  ] DietPi-Services | stop : mosquitto
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : apache2
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 https://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://repo.mosquitto.org/debian bullseye InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Mosquitto: MQTT messaging broker

[  OK  ] DietPi-Software | Checking URL: https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key
[  OK  ] DietPi-Software | eval curl -sSLf 'https://repo.mosquitto.org/debian/mosquitto-repo.gpg.key' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-mosquitto.gpg --yes
[  OK  ] DietPi-Software | eval echo 'deb https://repo.mosquitto.org/debian/ bullseye main' > /etc/apt/sources.list.d/dietpi-mosquitto.list
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 https://repo.mosquitto.org/debian bullseye InRelease
Hit:3 https://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update
[ INFO ] DietPi-Software | APT install for: mosquitto, please wait...
Setting up mosquitto (2.0.13-0mosquitto1~bullseye1) ...
Job for mosquitto.service failed because a fatal signal was delivered to the control process.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
● mosquitto.service - Mosquitto MQTT Broker
     Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: signal) since Sat 2021-11-20 12:22:40 GMT; 145ms ago
       Docs: man:mosquitto.conf(5)
             man:mosquitto(8)
    Process: 14871 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 14872 ExecStartPre=/bin/chown mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 14873 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 14874 ExecStartPre=/bin/chown mosquitto /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 14875 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=ILL)
   Main PID: 14875 (code=killed, signal=ILL)
        CPU: 129ms

Nov 20 12:22:41 DietPi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 1.
Nov 20 12:22:41 DietPi systemd[1]: Stopped Mosquitto MQTT Broker.
dpkg: error processing package mosquitto (--configure):
 installed mosquitto package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
[FAILED] DietPi-Software | APT install for: mosquitto
 - Command: apt-get -qq --allow-change-held-packages install mosquitto
Any suggestion?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: problem installing any software

Post by Joulinar »

Issue is with Mosquitto 2.0.13 not being able to be installed on Rpi1 and/or Zero. There is an issue open on Mosquitto GitHub already

https://github.com/eclipse/mosquitto/issues/2384

You are not able to install Mosquitto as long as Mosquitto guys working on it.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ghezzia
Posts: 15
Joined: Fri Nov 19, 2021 4:30 pm

Re: problem installing any software

Post by ghezzia »

Hi @Joulinar
Thanks for the answer and for the suggestion.
The problem is that this happens also with other software.
This is the SSH when I try to install GRAFANA

Code: Select all

[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
[  OK  ] DietPi-Software | Free space check: path=/ | available=3741 MiB | required=500 MiB
[  OK  ] DietPi-Software | DietPi-Userdata validation: /mnt/dietpi_userdata
[  OK  ] DietPi-Software | Checking network connectivity
[  OK  ] DietPi-Software | Checking DNS resolver
[  OK  ] Network time sync | Completed
[ SUB1 ] DietPi-Services > unmask 
[  OK  ] DietPi-Services | unmask : apache2
[  OK  ] DietPi-Services | unmask : lighttpd
[  OK  ] DietPi-Services | unmask : mosquitto
[  OK  ] DietPi-Services | unmask : grafana-server
[  OK  ] DietPi-Services | unmask : cron
[ SUB1 ] DietPi-Services > stop 
[  OK  ] DietPi-Services | stop : cron
[  OK  ] DietPi-Services | stop : grafana-server
[  OK  ] DietPi-Services | stop : mosquitto
[  OK  ] DietPi-Services | stop : lighttpd
[  OK  ] DietPi-Services | stop : apache2
[  OK  ] DietPi-Software | mkdir -p /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads /var/www /opt /usr/local/bin
[  OK  ] DietPi-Software | chown dietpi:dietpi /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[  OK  ] DietPi-Software | chmod 0775 /mnt/dietpi_userdata/Music /mnt/dietpi_userdata/Pictures /mnt/dietpi_userdata/Video /mnt/dietpi_userdata/downloads
[ INFO ] DietPi-Software | APT update, please wait...
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 https://archive.raspberrypi.org/debian bullseye InRelease
Hit:3 https://repo.mosquitto.org/debian bullseye InRelease
Reading package lists...
[  OK  ] DietPi-Software | APT update

 DietPi-Software
─────────────────────────────────────────────────────
 Step: Checking for prerequisite software


 DietPi-Software
─────────────────────────────────────────────────────
 Step: Installing Grafana: platform for analytics and monitoring

[  OK  ] DietPi-Software | Checking URL: https://dl.grafana.com/oss/release/grafana-rpi_8.1.2_armhf.deb
[  OK  ] DietPi-Software | cd /tmp/DietPi-Software
[  OK  ] DietPi-Software | curl -sSfL https://dl.grafana.com/oss/release/grafana-rpi_8.1.2_armhf.deb -o grafana-rpi_8.1.2_armhf.deb
[ INFO ] DietPi-Software | APT install for: ./grafana-rpi_8.1.2_armhf.deb, please wait...
Setting up mosquitto (2.0.13-0mosquitto1~bullseye1) ...
Job for mosquitto.service failed because a fatal signal was delivered to the control process.
See "systemctl status mosquitto.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mosquitto, action "start" failed.
● mosquitto.service - Mosquitto MQTT Broker
     Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: signal) since Sat 2021-11-20 15:41:57 GMT; 140ms ago
       Docs: man:mosquitto.conf(5)
             man:mosquitto(8)
    Process: 15701 ExecStartPre=/bin/mkdir -m 740 -p /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 15702 ExecStartPre=/bin/chown mosquitto /var/log/mosquitto (code=exited, status=0/SUCCESS)
    Process: 15703 ExecStartPre=/bin/mkdir -m 740 -p /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 15704 ExecStartPre=/bin/chown mosquitto /run/mosquitto (code=exited, status=0/SUCCESS)
    Process: 15705 ExecStart=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf (code=killed, signal=ILL)
   Main PID: 15705 (code=killed, signal=ILL)
        CPU: 129ms

Nov 20 15:41:58 DietPi systemd[1]: mosquitto.service: Scheduled restart job, restart counter is at 1.
Nov 20 15:41:58 DietPi systemd[1]: Stopped Mosquitto MQTT Broker.
dpkg: error processing package mosquitto (--configure):
 installed mosquitto package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 mosquitto
E: Sub-process /usr/bin/dpkg returned an error code (1)
[FAILED] DietPi-Software | APT install for: ./grafana-rpi_8.1.2_armhf.deb
 - Command: apt-get -qq --allow-change-held-packages install ./grafana-rpi_8.1.2_armhf.deb
The same with MYSQL, NODE-RED, LAMP...
I'm not sure the problem is MOSQUITTO
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: problem installing any software

Post by Joulinar »

Your system is still trying to setup mosquitto. Therefore each install is failing. You would need to purge mosquitto first

Code: Select all

apt purge mosquitto
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
ghezzia
Posts: 15
Joined: Fri Nov 19, 2021 4:30 pm

Re: problem installing any software

Post by ghezzia »

great! Now everything is working...
Looking forward to Mosquitto guys then ;)
Post Reply