Apt full-upgrade won't work PiZero

Creating a bug report/issue

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=21
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bullseye bullseye 1

  • Kernel version | uname -a
    Linux DietPi 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux

  • Architecture | dpkg --print-architecture
    dpkg: error: unknown option --print-architecturedpkg

Type dpkg --help for help about installing and deinstalling packages [*];
Use ‘apt’ or ‘aptitude’ for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through ‘less’ or ‘more’ !

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

RPi Zero (armv6l)

  • Power supply used | (EG: 5V 1A RAVpower)
    5V 1A

  • SD card used | (EG: SanDisk ultra)
    SanDisk Ultra

Additional Information (if applicable)

  • Software title | (EG: Nextcloud)

Base

  • Was the software title installed freshly or updated/migrated?
    Brand new install

  • Can this issue be replicated on a fresh installation of DietPi?
    Yes

← If you sent a “dietpi-bugreport”, please paste the ID here →

  • Bug report ID | echo $G_HW_UUID

37fa8c75-dd63-4f85-a63a-969315101f67

Steps to reproduce

Freshly created with etcher and started it up , could not even finish the first steps

Expected behaviour

apt upgrade to work

Actual behaviour

What happens is this error below :

root@DietPi:/tmp/DietPi-Software# apt upgrade --fix-missing
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  libjson-c5
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 38.8 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf libjson-c5 armhf 0.15-2+deb11u1
  400  Bad Request [IP: 45.126.189.130 80]
E: Failed to fetch http://raspbian.mirror.net.in/raspbian/raspbian/pool/main/j/json-c/libjson-c5_0.15-2+deb11u1_armhf.deb  400  Bad Request [IP: 45.126.189.130 80]

Extra details

None

Looks like an issue with a specific Raspbian mirror (India). Unfortunately these server are out of our control. Probably you got redirected to a bad one. You don’t configure anything manually on source files? Best is to wait and hopefully it will fix. If not, you can change to a different mirror manually.