Can't install KDEConnect Indicator from the Boutique on Cosmic

Found another issue in the Boutique on UM 18.10: when trying to install KDE Connect Indicator (System tools section), it can’t find the repo. It actually tries to install it from the dedicated PPA by WebUpd8 which currently stops at Bionic (18.04).

Not sure if they plan to add a Cosmic branch to their repo, if it should be removed from the Boutique or if you should find a different source?

@lah7: any idea on the matter?

EDIT: BTW, the failing process still adds a .list file for the non-existent repo in /etc/apt/sources.list.d. Shouldn’t it automatically remove it in that case to avoid error messages from APT?

Really weird, as I did install it yesterday after the upgrade to UM 18.10 (it did not work anymore with the latest 18.04).

And it works now, again :slight_smile:

Did you have it already installed in 18.04? If that’s the case, maybe the repo hasn’t been updated and you still use the bionic version. I’ve tried to download the deb to see if there was issues with 18.10; I haven’t installed it but all dependencies were ok, so installation should be fine with the old repo.

Just to check, can you give me the output of the following?

cat /etc/apt/sources.list.d/webupd8team-ubuntu-indicator-kdeconnect-*.list

cat /etc/apt/sources.list.d/webupd8team-ubuntu-indicator-kdeconnect-*.list

Output:

deb http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu bionic main # KDE Connect
# deb-src http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu cosmic main # disabled on upgrade to cosmic

Ok, you still have the repo set to bionic, which explains why it installs on your PC.

I’ve set the deb http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu bionic main to bionic, it was disabled after the upgrade.

And I’ve uninstalled the “not working” version before I re-installed it from Software Boutique.

As long as you have the repo enabled in your sources, you can uninstall/reinstall the package at will.

When you upgrade to a new version of Ubuntu, it disable all 3rd-party repos and updates them to the new version if it exists. It keeps the old version if it doesn’t. In your case, it kept the old version (bionic) that you just had to re-enable after the upgrade. Luckily, the indicator-kdeconnect dependencies haven’t changed between 18.04 and 18.10, so it all went fine when you reinstalled it. Ideally, you should have switched it to cosmic when re-enabling it but in that specific case, it doesn’t exist. You should do it for your other 3rd-party repos if they’ve been updated, though.

If you manually remove the repo (or use a fresh 18.10 installation) and try to install the indicator again, it’ll add the repo through add-apt-repository. Except that add-apt-repository doesn’t check if a repo version actually exists, it’ll just add it with the current codename. I.e. it’ll add this WebUpd8 repo as a cosmic version that does not exist, which is the issue I have.

I could simply use the old repo or simply install the deb, of course, but it should be fixed anyway in the Boutique.

What I’ve done:

  1. re-enabled all disabled repositories after the upgrade (except for the Source code repositories, as I do not need the source code).
  2. tried to update to get the list of repositories that do not have a “cosmic” distribution by using:
    sudo apt-get update
  3. changed the distribution to bionic for those for which I got errors in the previous step, afterwards

Now I do not get an error when using the Software Updater anymore.

I have to periodically check the repositories that are set to use the bionic distribution and update them to cosmic once they are available.

Ok, you did it the right way. Except that if I were you, I’d change the deb-src lines to the proper version (the same as the deb line), just in case you need to enable sources at some point, forget that the versions mismatch and have broken stuff. But this is just a personal advice. :wink:

Oh, yes! You’re right! I’ll do the changes straight ahead. Who knows when they are required :wink:

Just tried to install on clean Ubuntu MATE 18.10 (Cosmic).

Got the following error window from Software Boutique:

The repository was added:

$ cat /etc/apt/sources.list.d/webupd8team-ubuntu-indicator-kdeconnect-cosmic.list 
deb http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu cosmic main
deb-src http://ppa.launchpad.net/webupd8team/indicator-kdeconnect/ubuntu cosmic main

But it does not have cosmic in dists folder. And does not have Cosmic in drop-down menu at PPA page.

I wrote message to WebUpd8 Team to request packaging for Cosmic.