Error with apt install

Having issues with your DietPi installation or found a bug? Post it here.
Jokerdf00
Posts: 10
Joined: Mon Nov 15, 2021 10:28 pm

Re: Error with apt install

Post by Jokerdf00 »

Chek the video
https://photos.app.goo.gl/hhShviNyhoHNLkCR7
And this is the last frame
Image
Attachments
restart.PNG
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

could you remove the SD card and place it in desktop computer. There you should be able to access the bootFS partition. On that partition you have a file cmdline.txt. Open it and remove the quiet. Save the file, place it back to your device and reboot.. Hopefully it will give some more information.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Jokerdf00
Posts: 10
Joined: Mon Nov 15, 2021 10:28 pm

Re: Error with apt install

Post by Jokerdf00 »

ok, now another loop after some operation it says check disk and when complete it repeated again
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

can you put back the SD card to your computer. There should be a file forcefsck on boot partition. Pls remove and reboot afterwards the device
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Jokerdf00
Posts: 10
Joined: Mon Nov 15, 2021 10:28 pm

Re: Error with apt install

Post by Jokerdf00 »

i don't have any file with this name
Image
Attachments
sdcard.PNG
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

@MichaIng
Any ideas why system is running in boot loop. We tried to do a forcefsck
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Error with apt install

Post by MichaIng »

forcefsck needs to be located in the root partition, not in the boot partition. But since it's ext4, it is hard to access from Windows or macOS. What you can do instead is adding fsck.mode=force to the boot parameters in cmdline.txt. When boot succeeds, you need to manually remove it, else all drives will be forcefully checked on every boot ;).

Another thing is to enable boot messages on console. For this remove quiet from cmdline.txt. The boot loop is very quick, but when doing a video you're hopefully able to catch the related error message. The quality should be higher, maybe but the camera onto a table instead of holding it and avoid lossy compression when uploading or viewing it.
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

Not sure how I could mix RootFS and BootFS :cry:

@MichaIng
quite we already removed
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Error with apt install

Post by MichaIng »

Ah sorry, the exact error message would be good + the fsck.mode=force mentioned above.

Also try to check and fix the boot/FAT filesystem from Windows or macOS.

Reading from the start of the thread, there seems to be something seriously wrong indeed. Do you have a backup on an external drive? Probably its easier to reformat the SD card, flash a new DietPi image (for partitioning) and then removing all content + copying the backup inside, e.g. from a VM or other Linux system which can mount ext4.
Post Reply