Could not download all repository indexes

Quick to answer questions about finding your way around Linux Mint as a new user.
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. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Could not download all repository indexes

Post by jamesofyorkshire »

Hi.

When I try updating my PC, a box pops up with this in it:

An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: KEYEXPIRED 1624268195 KEYEXPIRED 1624268195 KEYEXPIRED 1624268195Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease The following signatures were invalid: KEYEXPIRED 1624268195 KEYEXPIRED 1624268195 KEYEXPIRED 1624268195Some index files failed to download. They have been ignored, or old ones used instead.

I haven't had any updates for a couple of weeks now. Is that because of the error message?

I've uninstalled Skype but the error message still pops up when I try to update.

Any advice on how to stop the message popping up and enabling me to update the PC will be much appreciated.

Thanks in advance.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Could not download all repository indexes

Post by sleeper12 »

You can disable/remove that PPA/repo in Software Sources.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

I had the same problem with Skype, so uninstalled it, removed the source file, and removed the key. I'll just leave it until they update the signature. Provided you've already uninstalled Skype and removed '/etc/apt/sources.list.d/skype-stable.list' (you may have already done this with a CLI or GUI tool), here's how to remove the key:

Code: Select all

# List known keys and some information for them.
apt-key list

# Identify the relevant key ID, then remove it with:
sudo apt-key del KEY_ID
Be sure you get the right ID otherwise you will make a mess! It should be easy enough to find, as it'll say 'Skype' somewhere for that entry. And obviously replace KEY_ID with the actual key ID. :roll: I'm not sure if the above-poster's suggestion covers key management, as I always do these things in terminals, so this is all I can offer you, I'm afraid.

This command may remove the key for you, assuming it's as you showed above:

Code: Select all

sudo apt-key del '1624268195'
I even installed and removed Skype all over again, just to be sure I had it all correct. :lol:
jamesofyorkshire wrote:I haven't had any updates for a couple of weeks now. Is that because of the error message?
Yes, I expect so. :(
I'm also Terminalforlife on GitHub.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Could not download all repository indexes

Post by sleeper12 »

This might update the key:

Code: Select all

 curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add - 
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

sleeper12 wrote: Wed Jul 07, 2021 12:01 pm ...
You beaut'! That worked a treat. I figured it would lead you with two keys for Skype, but nope! Sorted. :) If only I'd known that before I made a video about it on YouTube. :roll:
I'm also Terminalforlife on GitHub.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Could not download all repository indexes

Post by sleeper12 »

Well, good to know that actually works. I think I found it somewhere on an Ubuntu site. :wink:
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

:) I just dug through my notes to actually take note of this, and found a really old entry from back when it was in beta, with that exact command! You'd think they'd have sorted it by now. :lol:
I'm also Terminalforlife on GitHub.
sleeper12
Level 21
Level 21
Posts: 14603
Joined: Thu May 25, 2017 3:22 pm

Re: Could not download all repository indexes

Post by sleeper12 »

I assumed it was something new. At least it still works. :lol:
isahk01
Level 1
Level 1
Posts: 24
Joined: Sun Sep 06, 2015 9:57 pm

Re: Could not download all repository indexes

Post by isahk01 »

Just tried but not working.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

That's unfortunate. I wonder why it worked for me and not for you. I did completely uninstall it first, install it, then added the key via the above command; did you try that?
I'm also Terminalforlife on GitHub.
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Re: Could not download all repository indexes

Post by jamesofyorkshire »

Having followed the video made by Termy and totally uninstalled Skype, how do I re-install it? I've tried Synaptic Package Manager but it's not there.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

jamesofyorkshire wrote: Mon Jul 12, 2021 8:40 am Having followed the video made by Termy and totally uninstalled Skype, how do I re-install it? I've tried Synaptic Package Manager but it's not there.
Open up a terminal, then paste in the following one-liner:

Code: Select all

(cd /tmp && wget -q --show-progress 'https://go.skype.com/skypeforlinux-64.deb' && sudo dpkg -i skypeforlinux-64.deb)
Then press Enter/Return. It will go to your '/tmp' directory, download the Debian package for Skype straight from M$, then have your package manager install it. Skype will only be installed if there aren't any issues with the download and the '/tmp' directory exists. It should go smoothly. If you have any issues, let me/us know.
I'm also Terminalforlife on GitHub.
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Re: Could not download all repository indexes

Post by jamesofyorkshire »

When I put that line into the terminal it downloads then says:

'dpkg frontend is locked by another process'
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Re: Could not download all repository indexes

Post by jamesofyorkshire »

I rebooted the PC and tried again. This is what came up in the terminal in response to that one line you quoted previously:

(cd /tmp && wget -q --show-progress 'https://go.skype.com/skypeforlinux-64.deb' && sudo dpkg -i skypeforlinux-64.deb)
skypeforlinux-64.de 100%[===================>] 117.63M 126KB/s in 15m 37s
[sudo] password for james:
Selecting previously unselected package skypeforlinux.
(Reading database ... 686325 files and directories currently installed.)
Preparing to unpack skypeforlinux-64.deb ...
Unpacking skypeforlinux (8.73.0.129) ...
dpkg: dependency problems prevent configuration of skypeforlinux:
skypeforlinux depends on libgbm1 (>= 17.1.0~rc2); however:
Version of libgbm1:amd64 on system is 11.2.0-1ubuntu2.
skypeforlinux depends on libgtk-3-0 (>= 3.21.5); however:
Version of libgtk-3-0:amd64 on system is 3.18.9-1ubuntu3.3.

dpkg: error processing package skypeforlinux (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for gnome-menus (3.13.3-6ubuntu3.1) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.15-0ubuntu1.1) ...
Errors were encountered while processing:
skypeforlinux
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

You could try addressing unmet dependencies with: sudo apt-get install -f If it works, Skype should finish installing.

Code: Select all

dpkg frontend is locked by another process
That above error message should just mean the package manager is busy, so you should have waited for a bit, for it to finish.
I'm also Terminalforlife on GitHub.
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Re: Could not download all repository indexes

Post by jamesofyorkshire »

I waited 2 hours+. I didn't close the terminal.

I've done:

sudo apt-get install -f

...and it's removed Skype!

I'll try going through the process again.
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

Usually that command will remove packages whose dependencies could not be met. It's a shame M$ don't offer an AppImage. What's your version of Mint? Actually, please post the output of inxi -Fxxxrz within code ([code]like this[/code]) tags. Maybe you're using a really old version of Mint (and so Ubuntu), or maybe you're using something like PPAs which are providing old libraries Skype needs, overriding those in the official repositories. Have you compiled anything yourself?
I'm also Terminalforlife on GitHub.
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Re: Could not download all repository indexes

Post by jamesofyorkshire »

'Have you compiled anything yourself?' I'm not clever enough to do anything like that!


$ inxi -Fxxxrz
System: Host: james-Studio-1737 Kernel: 4.4.0-210-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.0.7 (Gtk 3.18.9-1ubuntu3.3) dm: mdm
Distro: Linux Mint 18 Sarah
Machine: System: Dell (portable) product: Studio 1737 v: A09
Mobo: Dell model: 0P792H v: A09 Bios: Dell v: A09 date: 04/14/2011
CPU: Dual core Pentium T4200 (-MCP-) cache: 1024 KB
flags: (lm nx sse sse2 sse3 ssse3) bmips: 7979
clock speeds: min/max: 1200/2000 MHz 1: 1600 MHz 2: 1600 MHz
Graphics: Card: Intel Mobile 4 Series Integrated Graphics Controller
bus-ID: 00:02.0 chip-ID: 8086:2a42
Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
Resolution: 1440x900@59.97hz
GLX Renderer: Mesa DRI Mobile Intel GM45 Express
GLX Version: 2.1 Mesa 11.2.0 Direct Rendering: Yes
Audio: Card Intel 82801I (ICH9 Family) HD Audio Controller
driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:293e
Sound: Advanced Linux Sound Architecture v: k4.4.0-210-generic
Network: Card-1: Broadcom and subsidiaries BCM4312 802.11b/g LP-PHY
driver: wl bus-ID: 04:00.0 chip-ID: 14e4:4315
IF: wlp4s0 state: up mac: <filter>
Card-2: Broadcom and subsidiaries NetLink BCM5784M Gigabit Ethernet PCIe
driver: tg3 v: 3.137 bus-ID: 08:00.0 chip-ID: 14e4:1698
IF: enp8s0 state: down mac: <filter>
Drives: HDD Total Size: 250.1GB (92.9% used)
ID-1: /dev/sda model: Hitachi_HTS54322 size: 250.1GB serial: 090107FB2F00LLDDAYGA temp: 31C
Partition: ID-1: / size: 226G used: 213G (100%) fs: ext4 dev: /dev/sda1
ID-2: swap-1 size: 4.22GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
RAID: System: supported: N/A
No RAID devices: /proc/mdstat, md_mod kernel module present
Unused Devices: none
Sensors: System Temperatures: cpu: 48.0C mobo: 35.0C
Fan Speeds (in rpm): cpu: N/A fan-2: 2498
Repos: Active apt sources in file: /etc/apt/sources.list.d/google-chrome.list
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
deb http://packages.linuxmint.com sarah main upstream import backport #id:linuxmint_main
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/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
Info: Processes: 158 Uptime: 8:09 Memory: 2315.6/3884.9MB
Init: systemd v: 229 runlevel: 5 default: 2 Gcc sys: 5.4.0
Client: Shell (bash 4.3.481 running in gnome-terminal-) inxi: 2.2.35
james@james-Studio-1737 ~ $
User avatar
Termy
Level 12
Level 12
Posts: 4248
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: Could not download all repository indexes

Post by Termy »

As I suspected, you're using a version of Mint based on Ubuntu 16.04, which has reached the end of its long-term support of 5 years. You should upgrade your installation of Mint to the 19.* or 20.* range. Linux Mint 18 (Cinnamon) first released in June 2016, over 5 years ago.

Using an out-of-date installation of an operating system puts you at risk and will continue to give you headaches like this Skype installation — while Linux is great for security, it's no exception.

Here is a list of versions of Linux Mint.

Due to Mint 18 being EOL and you using a 4.4 kernel, I assume you also have other updating issues far greater than with Skype.
I'm also Terminalforlife on GitHub.
jamesofyorkshire
Level 2
Level 2
Posts: 73
Joined: Mon Mar 07, 2016 5:23 am
Location: Yorkshire

Re: Could not download all repository indexes

Post by jamesofyorkshire »

OK. Thanks a lot for your help. I was thinking of installing a newer version of Mint. I will do so now.
Locked

Return to “Beginner Questions”