[Solved]problem installing any software

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:

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

Pls could you scroll up on the SSH terminal. Above the blue error box. There should be the error message.

This is what happens after I launch the command:

[  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?

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.

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

[  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

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

apt purge mosquitto

great! Now everything is working…
Looking forward to Mosquitto guys then :wink:

Hello everyone,
Is this problem still pending ? I have the same issue.

Tried to purge and reinstall after installation of apt-utils and it did nothing.

Is it possible to install it from source ?
Saw this but i’m not sure if it will help

sudo apt-get install cmake libssl1.0-dev libwebsockets-dev uuid-dev
cd /tmp
wget http://mosquitto.org/files/source/mosquitto-2.0.14.tar.gz
tar xavf mosquitto-2.0.14.tar.gz
cd mosquitto-2.0.14
cmake .
# cmake -DWITH_WEBSOCKETS=ON . if you need websockets support
make -j4
sudo make install

I also was thinking about runnning it in docker :face_with_raised_eyebrow:

EDIT SORRY THE POST WAS TAGGED AS SOLVED

the challenge was on mosquitto application site not being able to start correctly. The question you raised would need to be addressed to mosquitto dev’s. You could try to connect to the already open GitHub issue https://github.com/eclipse/mosquitto/issues/2384

Yes, thanks !

For anyone who came here for mosquitto problem, i managed to make it work via docker and this git.

To make it simple and with a pi zero on arm6 :

docker run -d -p 1883:1883 -p 9001:9001 --name=mosquitto --restart=always damianmoore/mosquitto-arm32v6

And it works fine !

Thanks everyone and happy new year !

did you tested the official image? https://hub.docker.com/_/eclipse-mosquitto?tab=description