Updates failing in 24.04

Ubuntu Support Template

Ubuntu Version:24.04.2

Desktop Environment (if applicable):
GNOME.

Problem Description:
For some time my updates fail, with the Software Updater error message “Failed to download repository , check internet”

Snaps seem to be OK. My internet seems fine - everything else is downloading OK such as email and websites.

What I’ve Tried:
I’ve looked at settings which seem OK, but every time the update notification appears (which is nowhere near as often as it used to) the list of items to be update grows longer, and I get the error message.

TIA

Dianne

What is the output of

sudo apt update
sudo apt upgrade

Thanks

1 Like

Hit:1 http://gb.archive.ubuntu.com/ubuntu noble InRelease
Get:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Ign:4 Index of /michael-gruz/canon/ubuntu noble InRelease
Get:5 http://gb.archive.ubuntu.com/ubuntu noble-backports InRelease [126 kB]
Hit:6 https://ppa.launchpadcontent.net/thierry-f/fork-michael-gruz/ubuntu noble InRelease
Err:7 Index of /michael-gruz/canon/ubuntu noble Release
404 Not Found [IP: 185.125.189.188 443]
Get:8 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [46.4 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [1,330 kB]
Get:10 http://gb.archive.ubuntu.com/ubuntu noble-updates/main i386 Packages [531 kB]
Get:11 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [304 kB]
Get:12 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [76.3 kB]
Get:13 http://gb.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1,191 kB]
Hit:14 http://linux.dropbox.com/ubuntu noble InRelease
Get:15 http://gb.archive.ubuntu.com/ubuntu noble-updates/main amd64 Components [181 kB]
Get:16 http://gb.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [1,137 kB]
Get:17 http://gb.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1,683 kB]
Get:18 http://gb.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Components [388 kB]
Get:19 http://gb.archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Components [940 B]
Get:20 http://gb.archive.ubuntu.com/ubuntu noble-backports/main amd64 Components [5,760 B]
Get:21 http://gb.archive.ubuntu.com/ubuntu noble-backports/universe amd64 Components [12.6 kB]
Reading package lists… Done
E: The repository ‘ Index of /michael-gruz/canon/ubuntu noble Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

====

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Calculating upgrade… Done
The following packages were automatically installed and are no longer required:
libaribb24-0t64 libdrm-nouveau2:i386 libfwupd2 libllvm17t64
libllvm17t64:i386 libmfx1 libopencore-amrnb0 libopencore-amrwb0
libvo-amrwbenc0 mailcap python3-netifaces
Use ‘sudo apt autoremove’ to remove them.
Get more security updates through Ubuntu Pro with ‘esm-apps’ enabled:
libmagickcore-6.q16-7t64 libzvbi-common libqt5xml5t64 qt5-gtk-platformtheme
imagemagick libqt5sql5t64 libmagickcore-6.q16-7-extra libqt5qml5
libqt5test5t64 libcjson1 libqt5quick5 libopenexr-3-1-30 libpostproc57
python3-wheel libqt5gui5t64 libmbedcrypto7t64 libavcodec60 libavcodec60
libgstreamer-plugins-bad1.0-0 libzvbi0t64 libzvbi0t64 libqt5printsupport5t64
libavutil58 libavutil58 libqt5widgets5t64 imagemagick-6.q16 libswscale7
python3-pip libqt5dbus5t64 libqt5network5t64 libswresample4 libswresample4
imagemagick-6-common libqt5sql5-sqlite libqt5qmlmodels5 libavformat60
libqt5core5t64 libavfilter9 libmagickwand-6.q16-7t64
Learn more about Ubuntu Pro at Ubuntu Pro | Ubuntu
The following packages will be upgraded:
alsa-ucm-conf apparmor apport apport-core-dump-handler apport-gtk base-files
binutils binutils-common binutils-x86-64-linux-gnu bluez bluez-cups
bluez-obexd cloud-init coreutils cpp-9 dconf-cli dconf-gsettings-backend
dconf-service dhcpcd-base firmware-sof-signed gcc-9 gcc-9-base gdb gdm3
gir1.2-gdm-1.0 gir1.2-gtk-4.0 gir1.2-mutter-14 gir1.2-nautilus-4.0
gir1.2-nm-1.0 gnome-control-center gnome-control-center-data
gnome-control-center-faces gnome-keyring gnome-keyring-pkcs11
gnome-remote-desktop gnome-settings-daemon gnome-settings-daemon-common
gnome-shell-extension-desktop-icons-ng initramfs-tools initramfs-tools-bin
initramfs-tools-core intel-media-va-driver intel-media-va-driver:i386
iproute2 krb5-locales language-pack-en language-pack-en-base
language-pack-gnome-en language-pack-gnome-en-base ldap-utils libapparmor1
libapparmor1:i386 libasan5 libbinutils libbluetooth3
libboost-iostreams1.83.0 libboost-locale1.83.0 libboost-thread1.83.0
libctf-nobfd0 libctf0 libdconf1 libfprint-2-2 libfprint-2-tod1 libfwupd2
libgcc-9-dev libgdm1 libgprofng0 libgssapi-krb5-2 libgtk-4-1 libgtk-4-bin
libgtk-4-common libgtk-4-media-gstreamer libgtop-2.0-11 libgtop2-common
libigdgmm12 libigdgmm12:i386 libinput-bin libinput10 libipa-hbac0t64
libjcat1 libk5crypto3 libkrb5-3 libkrb5support0 libldap-common libldap2
libmalcontent-0-0 libmbim-glib4 libmbim-proxy libmbim-utils libmtp-common
libmtp-runtime libmtp9t64 libmutter-14-0 libnautilus-extension4 libnetplan1
libnftables1 libnm0 libnm0:i386 libnss-sss libnuma1 libnuma1:i386
libopenblas0-pthread libpam-gnome-keyring libpam-sss libplymouth5
libqpdf29t64 libsframe1 libsss-certmap0 libsss-idmap0 libsss-nss-idmap0
libwhoopsie0 libwireplumber-0.4-0 linux-base linux-firmware lshw mutter
mutter-common mutter-common-bin nautilus nautilus-data netplan-generator
netplan.io network-manager network-manager-config-connectivity-ubuntu
network-manager-openvpn network-manager-openvpn-gnome nftables numactl
plymouth plymouth-label plymouth-theme-spinner plymouth-theme-ubuntu-text
powermgmt-base python-apt-common python3-apport python3-apt
python3-distupgrade python3-netplan python3-problem-report
python3-software-properties python3-sss simple-scan
software-properties-common software-properties-gtk sssd sssd-ad
sssd-ad-common sssd-common sssd-ipa sssd-krb5 sssd-krb5-common sssd-ldap
sssd-proxy systemd-hwe-hwdb tcpdump tecla thermald ubuntu-drivers-common
ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk whoopsie
wireplumber wpasupplicant xserver-common xserver-xephyr xserver-xorg-core
xserver-xorg-legacy xserver-xorg-video-amdgpu xserver-xorg-video-nouveau
xserver-xorg-video-vesa xwayland
171 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Need to get 748 MB/758 MB of archives.
After this operation, 21.4 MB of additional disk space will be used.

====

Thanks

OK. Looks OK but there’s a source that doesn’t support your release.

What is the output of:

grep -R gruz /etc

Thanks

etc/apt/sources.list.d/thierry-f-ubuntu-fork-michael-gruz-noble.sources:URIs: \`\`https://ppa.launchpadcontent.net/thierry-f/fork-michael-gruz/ubuntu//etc/apt/sources.list.d/michael-gruz-ubuntu-canon-noble.sources:URIs: \`\`https://ppa.launchpadcontent.net/michael-gruz/canon/ubuntu//etc/apt/sources.list.d/thierry-f-ubuntu-fork-michael-gruz-noble.sources.save:URIs: \`\`https://ppa.launchpadcontent.net/thierry-f/fork-michael-gruz/ubuntu//etc/apt/sources.list.d/michael-gruz-ubuntu-canon-noble.sources.save:URIs: \`\`https://ppa.launchpadcontent.net/michael-gruz/canon/ubuntu/grep: /etc/shadow: Permission deniedgrep: /etc/fwupd/fwupd.conf: Permission deniedgrep: /etc/fwupd/fwupd.conf.dpkg-old: Permission deniedgrep: /etc/netplan/90-NM-eb58a8f4-8c5f-4023-a5ae-e57e5c4e1864.yaml: Permission deniedgrep: /etc/netplan/90-NM-380b4017-3da6-4e01-9ebf-0d31419bc3cf.yaml: Permission deniedgrep: /etc/brlapi.key: Permission deniedgrep: /etc/.pwd.lock: Permission deniedgrep: /etc/security/opasswd: Permission deniedgrep: /etc/xdg/systemd/user/sockets.target.wants/pulseaudio.socket: No such file or directorygrep: /etc/xdg/systemd/user/pipewire.service.wants/pipewire-media-session.service: No such file or directorygrep: /etc/xdg/systemd/user/graphical-session-pre.target.wants/gnome-keyring.service: No such file or directorygrep: /etc/xdg/systemd/user/default.target.wants/pulseaudio.service: No such file or directorygrep: /etc/xdg/systemd/user/pipewire-session-manager.service: No such file or directorygrep: /etc/default/cacerts: Permission deniedgrep: /etc/ssl/private: Permission deniedgrep: /etc/rc3.d/S01cups-browsed: No such file or directorygrep: /etc/sssd: Permission deniedgrep: /etc/gshadow: Permission deniedgrep: /etc/rc6.d/K01cups-browsed: No such file or directorygrep: /etc/sudoers: Permission deniedgrep: /etc/credstore: Permission deniedgrep: /etc/shadow-: Permission deniedgrep: /etc/rc4.d/S01cups-browsed: No such file or directorygrep: /etc/gshadow-: Permission deniedgrep: /etc/rc2.d/S01cups-browsed: No such file or directorygrep: /etc/sudoers.d/README: Permission deniedgrep: /etc/credstore.encrypted: Permission deniedgrep: /etc/cups/subscriptions.conf: Permission deniedgrep: /etc/cups/printers.conf: Permission deniedgrep: /etc/cups/ssl: Permission deniedgrep: /etc/cups/classes.conf.O: Permission deniedgrep: /etc/cups/printers.conf.O: Permission deniedgrep: /etc/cups/subscriptions.conf.O: Permission deniedgrep: /etc/cups/classes.conf: Permission deniedgrep: /etc/cups/ppd/MP270.ppd.O: Permission deniedgrep: /etc/cups/ppd/MP270.ppd: Permission deniedgrep: /etc/cups/ppd/Canon_MP270@dianne-ThinkPad-L470-W10DG.local.ppd: Permission deniedgrep: /etc/cups/ppd/Canon_MP270@dianne-ThinkPad-L470-W10DG.local.ppd.O: Permission deniedgrep: /etc/cups/ppd/Canon_MP270@localhost.ppd: Permission deniedgrep: /etc/polkit-1/rules.d: Permission deniedgrep: /etc/rc5.d/S01cups-browsed: No such file or directorygrep: /etc/ppp/chap-secrets: Permission deniedgrep: /etc/ppp/pap-secrets: Permission deniedgrep: /etc/systemd/system/multi-user.target.wants/snapd.aa-prompt-listener.service: No such file or directorygrep: /etc/systemd/user/sockets.target.wants/pulseaudio.socket: No such file or directorygrep: /etc/systemd/user/pipewire.service.wants/pipewire-media-session.service: No such file or directorygrep: /etc/systemd/user/graphical-session-pre.target.wants/gnome-keyring.service: No such file or directorygrep: /etc/systemd/user/default.target.wants/pulseaudio.service: No such file or directorygrep: /etc/systemd/user/pipewire-session-manager.service: No such file or directorygrep: /etc/shadow.org: Permission deniedgrep: /etc/rc0.d/K01cups-browsed: No such file or directorygrep: /etc/rc1.d/K01cups-browsed: No such file or directorygrep: /etc/ufw/before6.rules: Permission deniedgrep: /etc/ufw/after6.rules: Permission deniedgrep: /etc/ufw/before.rules: Permission deniedgrep: /etc/ufw/user.rules: Permission deniedgrep: /etc/ufw/after.init: Permission deniedgrep: /etc/ufw/after.rules: Permission deniedgrep: /etc/ufw/user6.rules: Permission deniedgrep: /etc/ufw/before.init: Permission denied

Having a repository that does not have a release file will not stop us from updating/upgrading. If you run those two commands again and this time type y or yes then the operating system will update and Ubuntu 24.04.2 will progress to Ubuntu 24.04.4.

As you are on Ubuntu 24.04.2 LTS you can open Software & Updates>Other Software and uncheck the michael-gruz PPA and even remove it. Then the error message will disappear.

That Personal Package Archive (PPA) is no longer maintained. It was last modified 21/07/2024. So, it is not set up for releases of Ubuntu after Maverick.

Regards

Location of michael-gruz PPA

Or run:

sudo rm -f /etc/apt/sources.list.d/thierry-f-ubuntu-fork-michael-gruz*
sudo apt clean
sudo apt update

Sorry for delay I’ve been away. That PPA was just for my Canon printer/scanner which I hardly use now. Those updates have gone through and I’m now on 24.04.4 so thanks to you both for that.

2 Likes

This topic was automatically closed after 30 days. New replies are no longer allowed.