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

Error with apt install

Post by Jokerdf00 »

When i try to install something with apt install it show me this error an i cant understand it. Any ideas?
Image
Attachments
Error.PNG
Error.PNG (29.05 KiB) Viewed 107 times
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

there is no need to do print screen, you could simply copy your output from SSH terminal directly. This will be easier to read and to work with.

Can you run following and share the full output pls

Code: Select all

/boot/dietpi/func/dietpi-set_software apt-cache clean
apt update && apt upgrade
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 »

Code: Select all

root@DietPi:~# /boot/dietpi/func/dietpi-set_software apt-cache clean

 DietPi-Set_software
─────────────────────────────────────────────────────
 Mode: apt-cache (clean)

[  OK  ] apt-cache clean | Completed
root@DietPi:~# apt update && apt upgrade
Get:1 https://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 https://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:3 https://deb.debian.org/debian-security bullseye-security InRelease [44.1 k                                                                                                                       B]
Get:4 https://deb.debian.org/debian bullseye-backports InRelease [43.7 kB]
Get:5 https://archive.raspberrypi.org/debian bullseye InRelease [23.5 kB]
Get:6 https://deb.debian.org/debian bullseye/main armhf Packages [7942 kB]
Get:7 https://deb.debian.org/debian bullseye/contrib armhf Packages [40.2 kB]
Get:8 https://deb.debian.org/debian bullseye/non-free armhf Packages [56.3 kB]
Get:9 https://deb.debian.org/debian bullseye-updates/main armhf Packages [2600 B                                                                                                                       ]
Get:10 https://deb.debian.org/debian-security bullseye-security/main armhf Packa                                                                                                                       ges [88.9 kB]
Get:11 https://deb.debian.org/debian bullseye-backports/main armhf Packages [132                                                                                                                        kB]
Get:12 https://deb.debian.org/debian bullseye-backports/contrib armhf Packages [                                                                                                                       2864 B]
Get:13 https://deb.debian.org/debian bullseye-backports/non-free armhf Packages                                                                                                                        [1224 B]
Get:14 https://archive.raspberrypi.org/debian bullseye/main armhf Packages [205                                                                                                                        kB]
Fetched 8738 kB in 7s (1224 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: No sandbox user '_apt' on the system, can not drop privileges
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@DietPi:~#
Like this?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

it's perfectly fine this way.

It's just a warning but strange that you are missing the user _apt. Let's try to reinstall apt package

Code: Select all

apt install --reinstall apt
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 »

Code: Select all

root@DietPi:~# apt install --reinstall apt
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Archives directory /var/cache/apt/archives/partial is missing. - Acquire (2: No such file or directory)
root@DietPi:~#
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

something wrong on your system as you missing the directory as well. Not sure how this could happen. Could you check for kernel error messages

Code: Select all

dmesg -l err,crit,alert,emerg
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 »

Code: Select all

root@DietPi:~# dmesg -l err,crit,alert,emerg
[    5.146259] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.400139] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.409057] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.955182] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Jan  4 2021 19:56:29 version 7.45.229 (617f1f5 CY) FWID 01-2dbd9d2e
[    6.346628] EXT4-fs error (device mmcblk0p2): ext4_validate_block_bitmap:390: comm systemd: bg 32: bad block bitmap checksum
[    7.890681] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

it's just 1 but at least a file system error. can you try following

Code: Select all

> /forcefsck
reboot
# then after reboot
journalctl -t systemd-fsck
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 think my raspberry is dead because now is in bootloop :cry:
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Error with apt install

Post by Joulinar »

do you have a screen attached? Does it displey something?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply