[SOLVED] What could make Synaptic suddenly start returning “Failed to fetch...” for any & all packages, from all repos?
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
[SOLVED] What could make Synaptic suddenly start returning “Failed to fetch...” for any & all packages, from all repos?
[Not sure about the translation of the quoted message. What I get is « W: Échec de la récupération de... », followed by the full URL of the .deb file it was trying to fetch.]
This is happening only on my LM 18.3 main machine.
Of course, I refreshed the cache. So, if a package is listed, why would the repo refuse to supply it?
The problem also affects mintupdate and mintinstall, as well as packages from PPAs, such as palemoon, which I used to be able to update just fine.
I wondered if this could be related to the disappearance of the quick filter function in Synaptic, so I booted up into a backup copy of the same 18.3 installation from about 6 months ago, when everything worked fine, and I now get the same error when trying to install or update packages.
In LM 17.3 and LM 19.2 on a test machine, on the same network, Synaptic still works perfectly.
Any hints would be much appreciated.
This is happening only on my LM 18.3 main machine.
Of course, I refreshed the cache. So, if a package is listed, why would the repo refuse to supply it?
The problem also affects mintupdate and mintinstall, as well as packages from PPAs, such as palemoon, which I used to be able to update just fine.
I wondered if this could be related to the disappearance of the quick filter function in Synaptic, so I booted up into a backup copy of the same 18.3 installation from about 6 months ago, when everything worked fine, and I now get the same error when trying to install or update packages.
In LM 17.3 and LM 19.2 on a test machine, on the same network, Synaptic still works perfectly.
Any hints would be much appreciated.
Last edited by yellowfinch on Sun Jan 12, 2020 4:43 pm, edited 1 time in total.
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
Just a guess, but try:
Code: Select all
sudo apt update && sudo apt upgrade
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?

Maybe I'll try that after my upcoming mid-month full backup, but even then it's not something I'm inclined to try on this mission-critical machine, especially without knowing more about “apt upgrade”. The doc says very little. It says that it “installs available upgrades of all packages”.
That would be the same as selecting all 5 levels in mintupdate and letting it update everything at once? If so, it would go against the recommendations found on the “Levels” tab of the mintupdate Preferences, such as: “Apply one by one. Impacts sensitive parts of the system” (about level 4).
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
Well, you could just do apt update & see if that helps any. Then you can just upgrade what you want.
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
I've done “apt update” many times. That's what I meant by “I refreshed the cache”, in my initial post.
Since your reply seems to confirm what I was supposing (that “apt upgrade” is the same as applying updates through mintupdate), then we know that it won’t fix anything, because I get the same “Failed to fetch...” error whenever I try to upgrade any package through mintupdate.
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
Maybe mintupdate needs to be updated?
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
If you click 'Refresh' in Update Manager, do you get an update for mintupdate?
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
Ok, I wonder if it has something to do with your /etc/apt/sources.list. If that's the case, someone else will likely jump in here.
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
Ok, I have no other ideas then. Hopefully, someone else will.
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
If you had Timeshift set up before this happened, maybe you can use it to go back when things worked. Just a thought.
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
I do. I run Timeshift on the last day of every month and BackInTime on the 15th.
But I would have to know what to restore. Restoring everything as it was on 2019-10-31 would be similar to letting mintupdate upgrade everything, with regard to the risk of breaking something.
-
- Level 1
- Posts: 36
- Joined: Wed Apr 10, 2019 12:40 am
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
What this sounds like is you're not connected to the internet but I'm sure that you are if you are posting here? The fist thing I would try is changing my software sources, this won't help the issues with any PPA though. Revert back to the default sources or choose another mirror and see what happens. You can do this through the update manager by finding software sources in the menu.
Also, only upgrades packages that have anything to upgrade to. So it is exactly like installing updates through the update manager, it's a safe operation unless you are specifically not upgrading a certain package for some reason.
Also,
Code: Select all
apt upgrade
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
That's right; no problem with internet access on the machine in question.squiggles3 wrote: ↑Sun Jan 12, 2020 3:05 amWhat this sounds like is you're not connected to the internet but I'm sure that you are if you are posting here?
I had done that. (I tried two mirrors, other than the one I had always used.) That's what I meant by “from all repos”, in the title of this post. But I don’t know what you mean by “Revert back to the default sources”.squiggles3 wrote: ↑Sun Jan 12, 2020 3:05 amThe fist thing I would try is changing my software sources
Then why is there that warning in mintupdate, about doing level-4 updates one by one, for example? There are currently no level-5 updates pending for my system, but there are several ones in level 4, including “linux-firmware” (from 1.157.13 to 1.157.22). You would just let it throw that in with the whole lot?squiggles3 wrote: ↑Sun Jan 12, 2020 3:05 amonly upgrades packages that have anything to upgrade to. So it is exactly like installing updates through the update manager, it's a safe operationCode: Select all
apt upgrade

-
- Level 6
- Posts: 1317
- Joined: Sat Sep 17, 2016 6:40 pm
- Location: England
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
You should apply all the outstanding updates available. The whole business of levels was a blind alley that Mint 19 has abandoned because it was misleading (with the best of intentions) most of us. If you are concerned about that just make a Timeshift snapshot beforehand so that you can revert to the previous state.
Cliff Coggin
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
What exactly do you mean by that?yellowfinch wrote: ↑Sat Jan 11, 2020 5:10 pmFor the record: mysources.list
file is untouched since installation; it contains only a comment.
Please show us the output of
Code: Select all
cat /etc/apt/sources.list
Apologies in advance if I misunderstood.
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
You didn't misunderstand. It contains only this:
Code: Select all
#deb cdrom:[Linux Mint 18.3 _Sylvia_ - Release amd64 20171124]/ xenial contrib main non-free
In another 18.3 installation, from a year ago, the sources.list file contains that same comment plus a PPA for some utility that I never installed on my current system. On a 17.3 system, there are also only comments in the sources.list file. Yet, Synaptic and mintupdate work fine on those machines.
I think you're on to something. I'd much rather try to fix a "source list" issue first, rather than the alternatives I've had to contemplate so far. However, as I replied to squiggles3, I don't know how or where a "default source" is supposed to be specified.
-
- Level 3
- Posts: 174
- Joined: Tue Aug 30, 2016 1:58 pm
Re: What could make Synaptic suddenly start returning “Failed to fetch...” for any and all packages, from all repos?
Okay, I found it in
/etc/apt/sources.list.d/official-package-repositories.list
:Code: Select all
deb http://mirror.scd31.com/mint sylvia main upstream import backport
deb http://mirror.clibre.uqam.ca/ubuntu xenial main restricted universe multiverse
deb http://mirror.clibre.uqam.ca/ubuntu xenial-updates main restricted universe multiverse
deb http://mirror.clibre.uqam.ca/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
My usual official-package-repositories.list file would contain:
Code: Select all
deb http://mirror.csclub.uwaterloo.ca/linuxmint-packages sylvia main upstream import backport
deb http://mirror.csclub.uwaterloo.ca/ubuntu xenial main restricted universe multiverse
deb http://mirror.csclub.uwaterloo.ca/ubuntu xenial-updates main restricted universe multiverse
deb http://mirror.csclub.uwaterloo.ca/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner