Written by: Paul Rubin
Primary Source: OR in an OB World
Yesterday I ran into one of those mystifying glitches that, will infrequent, serve as a reminder that Linux is not for the faint of heart. When I booted my desktop system (Linux Mint 18.1 Serena), the system tray icon for the software updater was displaying a red “X” that indicates it tried and failed to update its cache. This is not uncommon, and the solution is usually simple: open the application and click the update button.
This time, however, the update produced a slew of error messages. For what appeared to be each repository it checked, it printed an error message saying
Skipping acquire of configured file <something with “i686” in it> as repository <whatever> doesn’t support architecture ‘i686’
After all the architecture error messages, I also got one about a problem with a GPG encryption key on a CRAN mirror. That message had been popping up, harmlessly, on each update for quite a while, so I did not worry about it.
The PC is a 64-bit machine, with an AMD processor, and I’m used to architecture references that contain either “amd64” or “x86_64” rather than “i686”. So my suspicious was that something had messed up a setting somewhere on the machine that identified the architecture to the updater. Running uname -m in a terminal got me “x86_64”, confirming that the machine itself was not undergoing any sort of identity crisis.
After a fruitless search for a malformed configuration file, I went to a Mint help forum, where I received a few answers. One said it was a server error, and I should just wait for them to fix it. That didn’t hold water for a couple of reasons. First, it would require simultaneous problems on a whole bunch of unrelated repository servers, which would be a bit too coincidental. Second, my laptop (also using an AMD 64-bit chip, but running Mint 18.0 Sarah and a slightly older version of the updater) had no problem updating. Another suggestion, reinstalling the updater, also bore no fruit.
Along the way, I discovered that in fact two repositories were being updated correctly. Those two, not coincidentally, specified “[arch=amd64]” in their source listings. Adding that string to all the other PPAs and extra repositories worked, albeit at some cost (the updater started to label the repositories as “arch=amd64” rather than by their correct names). Unfortunately, the updater would not let me use that trick on the two main repositories (one for Mint, one for Ubuntu), which left me still looking for a fix.
Someone on the help forum suggested disabling all the PPAs on my list of sources and trying again. I did that, and (crucially) also disabled sources in the “Additional repositories” list, leaving just the Mint and Ubuntu repositories. Lo and behold, the update went through. So I started restoring the other repositories in a binary search, and found the culprit. Remember the CRAN mirror that had a problem with its encryption key? If I disabled just that source, which was in the “Additional repositories” list, things worked. So I switched mirrors, reloaded the public key, and things are back to normal.
I have no idea why the encryption key error, which I’d been getting for weeks if not months, suddenly caused things to go splat across the board — and even less intuition as to why a bad encryption key would cause the updater to start using the wrong architecture code. For now, though, I’ll settle for having updates working again.