Update fails because of missing files

root@pureos:/home/purism# cat /etc/apt/sources.list
deb https://repo.pureos.net/pureos amber main

deb https://repo.pureos.net/pureos amber-updates main

deb https://repo.pureos.net/pureos amber-security main

deb https://repo.pureos.net/pureos amber-phone main

.

root@pureos:/home/purism# apt update
Hit:1 https://repo.pureos.net/pureos amber InRelease
Hit:2 https://repo.pureos.net/pureos amber-updates InRelease
Hit:3 https://repo.pureos.net/pureos amber-security InRelease
Hit:4 https://repo.pureos.net/pureos amber-phone InRelease
Reading package lists... Done
Building dependency tree       
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.

.

root@pureos:/home/purism# apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  phosh-mobile-tweaks
The following packages will be upgraded:
  ca-certificates calls dnsmasq-base flatpak gnome-control-center gnome-control-center-data gnome-settings-daemon gnome-settings-daemon-common gstreamer1.0-plugins-bad libflatpak0
  libgstreamer-plugins-bad1.0-0 libldap-2.4-2 libldap-common librem5-base librem5-base-defaults librem5-devkit-base librem5-gnome librem5-gnome-base librem5-gnome-phone librem5-non-gnome
  linux-image-5.9.0-1-librem5 linux-image-librem5 mobile-broadband-provider-info phoc phosh sudo tzdata
27 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 991 kB/31.2 MB of archives.
After this operation, 174 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Err:1 https://repo.pureos.net/pureos amber-security/main arm64 libldap-common all 2.4.47+dfsg-3+deb10u5
  404  Not Found [IP: 138.201.228.45 443]
Err:2 https://repo.pureos.net/pureos amber-security/main arm64 libldap-2.4-2 arm64 2.4.47+dfsg-3+deb10u5
  404  Not Found [IP: 138.201.228.45 443]
Err:3 https://repo.pureos.net/pureos amber-phone/main arm64 phoc arm64 0.6.0
  404  Not Found [IP: 138.201.228.45 443]
Err:4 https://repo.pureos.net/pureos amber-phone/main arm64 phosh arm64 0.8.0-1pureos1~amber0
  404  Not Found [IP: 138.201.228.45 443]
Err:5 https://repo.pureos.net/pureos amber-phone/main arm64 librem5-base-defaults all 32
  404  Not Found [IP: 138.201.228.45 443]
Err:6 https://repo.pureos.net/pureos amber-phone/main arm64 linux-image-librem5 arm64 5.9.16+librem5.2
  404  Not Found [IP: 138.201.228.45 443]
Err:7 https://repo.pureos.net/pureos amber-phone/main arm64 librem5-base all 32
  404  Not Found [IP: 138.201.228.45 443]
Err:8 https://repo.pureos.net/pureos amber-phone/main arm64 phosh-mobile-tweaks all 0.8.0-1pureos1~amber0
  404  Not Found [IP: 138.201.228.45 443]
Err:9 https://repo.pureos.net/pureos amber-phone/main arm64 librem5-gnome-base all 32
  404  Not Found [IP: 138.201.228.45 443]
Err:10 https://repo.pureos.net/pureos amber-phone/main arm64 librem5-gnome-phone all 32
  404  Not Found [IP: 138.201.228.45 443]
Err:11 https://repo.pureos.net/pureos amber-phone/main arm64 librem5-non-gnome all 32
  404  Not Found [IP: 138.201.228.45 443]
Err:12 https://repo.pureos.net/pureos amber-phone/main arm64 librem5-gnome all 32
  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/o/openldap/libldap-common_2.4.47+dfsg-3+deb10u5_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/o/openldap/libldap-2.4-2_2.4.47+dfsg-3+deb10u5_arm64.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/p/phoc/phoc_0.6.0_arm64.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/p/phosh/phosh_0.8.0-1pureos1~amber0_arm64.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/libr/librem5-base/librem5-base-defaults_32_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/l/linux-librem5/linux-image-librem5_5.9.16+librem5.2_arm64.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/libr/librem5-base/librem5-base_32_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/p/phosh/phosh-mobile-tweaks_0.8.0-1pureos1~amber0_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/libr/librem5-base/librem5-gnome-base_32_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/libr/librem5-base/librem5-gnome-phone_32_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/libr/librem5-base/librem5-non-gnome_32_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Failed to fetch https://repo.pureos.net/pureos/pool/main/libr/librem5-base/librem5-gnome_32_all.deb  404  Not Found [IP: 138.201.228.45 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
1 Like

404 Not Found

Have you tried?
sudo apt-get update

Is this on the phone (Librem 5) or a laptop? If the former, it may be better to post in that category.

Is this a transient error? I would wait 24 hours after your original error and then do the apt update and apt upgrade again.

Have you tried doing this from the GUI rather than the shell?

@hendi please upgrade (try to) following files individually:
libldap-common, libldap-2.4-2, phoc, phosh, librem5-base-defaults, linux-image-librem5, librem5-base, phosh-mobile-tweaks, librem5-gnome-base, librem5-gnome-phone, librem5-non-gnome, librem5-gnome

like this:
apt upgrade libldap-common etc. and let us know where mistakes are (if any).

Actually I think there is mistake within repo (currently) but incorrect (%2B):
linux-image-5.9.0-1-librem5_5.9.16%2Blibrem5.2_arm64.deb

Should be corrected to (I think):
linux-image-5.9.0-1-librem5_5.9.16_librem5.2_arm64.deb (in order that you can upgrade).

EDIT: - sign instead of + sign … or simply install linux-image-5.11.0-1-librem5_5.11.11pureos1_arm64.deb

Please disable temporarily:
## deb https://repo.pureos.net/pureos amber main

add and save:
deb https://mirrors.sonic.net/pureos/ amber main

Proceed to apt update and apt upgrade and let me know if this worked for you (just short yes/no).