G_AGI p7zip-fullMode: Installing FFmpeg: audio & visual libary
[ OK ] DietPi-Software | Connection test: https://dietpi.com/downloads/binaries/rpi/ffmpeg_rpi.7z
[ OK ] DietPi-Software | wget https://dietpi.com/downloads/binaries/rpi/ffmpeg_rpi.7z -O 7.7z
[FAILED] DietPi-Software | 7za x -y 7.7z -offmpeg_rpi
Also, I've added the following to dietpi.txt by the way (maybe ffmpeg is required by home assistant?):
AUTO_SETUP_AUTOMATED=1
AUTO_SETUP_INSTALL_SOFTWARE_ID=0 # Open SSH
AUTO_SETUP_INSTALL_SOFTWARE_ID=136 # Motion Eye - web interface & surveillance for your camera
AUTO_SETUP_INSTALL_SOFTWARE_ID=73 # Fail2Ban - prevents brute-force attacks with ip ban
AUTO_SETUP_INSTALL_SOFTWARE_ID=157 # Home Assistant - open-source home automation platform
tail -f /tmp/dietpi-firstrun-setup.log
Installation of the ffmpeg library, with extraction of 7z file with 7za. However the command 7za is not available.
Constant retries by dietpi-software on first login in the background to try and install the ffmpeg library (which fails everytime).
I've managed to work around this issue by logging into ssh and running the following command:
sudo apt-get install p7zip-full
(p7zip was installed already, but this does not contain 7za)
Then dietpi-software is able to finish successfully.
Log file contents:
/DietPi/dietpi/func/dietpi-globals: line 1373: 7za: command not found
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.
@dietpi-user
Many thanks for your report.
Very strange, we did remove 7za just with the 2 minutes ago released v6.22 Beta, but it is a core dependency of DietPi prior to that. (On v6.22 we use 7zr as lightweight alternative instead).
Please verify this is installed:
dpkg -l | grep 'p7zip-full'
Otherwise install the related package:
G_AGI p7zip-full
Or apply the just now released beta, which does not use 7za anymore: https://github.com/MichaIng/DietPi/issues/2632
Okay thank you Michalng for your quick reply, no I don't think p7zip-full was present before I ran the apt-get install p7zip-full command.
It is installed now too:
ii p7zip-full 16.02+dfsg-3+deb9u1 armhf 7z and 7za file archivers with high compression ratio
But just fyi, I downloaded the following image today, below the contents from the hash.txt file. With a previous image I didn't have these issues by the way (MD5 : aac641f4c233ba0d3c6987478602f960, Modified Time : 31/01/2019 14:44:55), but then I didn't modify the dietpi.txt file neither.
Filename : DietPi_RPi-ARMv6-Stretch.img
MD5 : c2ef66686da801c9634f457c89f7be7b
SHA1 : 2f6054d9e844d01f1ae987926e21cecc56862dca
CRC32 : fb6bf06b
SHA-256 : f68ae1507a9e31857ef10a6fdc32dee3a9087e8d1bd7e255e99f71a0dc8b4458
SHA-512 : e74436a34689635abd42a561c4141c5b88be15d79a13d7bdb8cf88e6d12d3cdc9f1c9839f97846ef2ad7026447e824f9b089c47741ea0291321f1c71c21dd181
SHA-384 : d2d9127f47517b4a9a161c40be2e87912ad52a0f2e2ee32f844d393c931e727d690ecb36898bce6a076519cc8dea3434
Full Path : C:UsersMichaVirtualMachinesDietPi_RPi-ARMv6-Stretch.img
Modified Time : 04.03.2019 20:44:12
Created Time : 04.03.2019 20:44:12
Entry Modified Time: 04.03.2019 22:18:58
File Size : 645.004.800
File Version :
Product Version :
Identical :
Extension : img
File Attributes : A
@dietpi-user
Omg now that you mention it, yeah I know how the issue occurred. I used the new DietPi-PREP script that only installs p7zip (but not p7zip-full) according to v6.22 changes, but the DietPi version is still v6.22.
Damn mistake, however easy to fix and v6.22 will be released soon which will resolve this issue with the image as well.
v6.22 was just released, so the image should work now out of the box without above error.
Most helpful comment
@dietpi-user
Omg now that you mention it, yeah I know how the issue occurred. I used the new DietPi-PREP script that only installs p7zip (but not p7zip-full) according to v6.22 changes, but the DietPi version is still v6.22.
Damn mistake, however easy to fix and v6.22 will be released soon which will resolve this issue with the image as well.