A
A
akula222017-12-26 11:37:06
mint
akula22, 2017-12-26 11:37:06

When adding a repository, I get an error ImportError: No module named aptsources.distro?

When running the command
sudo add-apt-repository ppa:jonathonf/mate-1.16

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 9, in <module>
    import aptsources.distro
ImportError: No module named aptsources.distro

here is the output of inxi -r
Repos:     Active apt sources in file: /etc/apt/sources.list.d/bitcoin-bitcoin-xenial.list
           deb http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu xenial main
           deb-src http://ppa.launchpad.net/bitcoin/bitcoin/ubuntu xenial main
           Active apt sources in file: /etc/apt/sources.list.d/maarten-baert-simplescreenrecorder-xenial.list
           deb http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu xenial main
           deb-src http://ppa.launchpad.net/maarten-baert/simplescreenrecorder/ubuntu xenial main
           Active apt sources in file: /etc/apt/sources.list.d/nilarimogard-webupd8-xenial.list
           deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial main
           deb-src http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu xenial 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
           Active apt sources in file: /etc/apt/sources.list.d/ondrej-php-xenial.list
           deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
           deb-src http://ppa.launchpad.net/ondrej/php/ubuntu xenial main
           Active apt sources in file: /etc/apt/sources.list.d/opera-stable.list
           deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
           Active apt sources in file: /etc/apt/sources.list.d/yandex-disk.list
           deb http://repo.yandex.ru/yandex-disk/deb/ stable main

How can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2017-12-26
@PavelMonro

There is a ticket
https://bugs.launchpad.net/linuxmint/+bug/1656581

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question