LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Issue adding Kodi Repository [Linux Mint] (https://www.linuxquestions.org/questions/linux-newbie-8/issue-adding-kodi-repository-%5Blinux-mint%5D-4175599680/)

dissposablehero 02-13-2017 03:05 PM

Issue adding Kodi Repository [Linux Mint]
 
###Solution on Post 34!!###

I have been experiencing issues when trying to add the Kodi repository to Linux Mint. I have followed the instructions here [http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux] and this is what terminal keeps sending back:

Code:

xx@xx ~ $ sudo apt-get install software-properties-common
[sudo] password for xx:
Reading package lists... Done
Building dependency tree     
Reading state information... Done
software-properties-common is already the newest version (1.6.4).
0 to upgrade, 0 to newly install, 0 to remove and 29 not to upgrade.
xx@xx ~ $ sudo add-apt-repository ppa:team-xbmc/ppa
Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1551, in <module>
    codename = config_parser.get("general", "base_codename")
  File "/usr/lib/python2.7/ConfigParser.py", line 330, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'general'

Found similar errors people have reported via a Google search but the solutions were for older versions or different distros of Linux. Anyone have any ideas?

Many Thanks

ondoho 02-13-2017 03:23 PM

Code:

mintSources: No section: 'general'
it seems there's something wrong with your sources.
could be /etc/apt/sources* or something else.
the program complains that there's no section "general".

are you regularly updating/grading?

have you added fishy sources?

dissposablehero 02-13-2017 03:28 PM

Quote:

Originally Posted by ondoho (Post 5669990)
Code:

mintSources: No section: 'general'
it seems there's something wrong with your sources.
could be /etc/apt/sources* or something else.
the program complains that there's no section "general".

are you regularly updating/grading?

have you added fishy sources?

To be honest its a fairly new install, I followed a guide "20 things to do after installing Mint" but it was basically "install Thunderbird, Chrome" etc. I dont recall adding anything one would consider fishy.

jefro 02-13-2017 04:02 PM

Use command line to change ppa?
https://help.ubuntu.com/community/Re...es/CommandLine

It may be that you have to add in python-software-properties

sudo apt-get install

Not sure if apt or apt-get is part of the deal.

hydrurga 02-13-2017 04:02 PM

Can you please paste the output from inxi -r so that we can see which repositories you have set up.

dissposablehero 02-13-2017 04:10 PM

Quote:

Originally Posted by hydrurga (Post 5670020)
Can you please paste the output from inxi -r so that we can see which repositories you have set up.

Code:

Repos:    Active apt sources in file: /etc/apt/sources.list.d/dukto.list
          deb http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_16.04/ /
          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/numix-ppa-xenial.list
          deb http://ppa.launchpad.net/numix/ppa/ubuntu xenial main
          deb-src http://ppa.launchpad.net/numix/ppa/ubuntu xenial main
          Active apt sources in file: /etc/apt/sources.list.d/official-package-repositories.list
          deb http://www.mirrorservice.org/sites/packages.linuxmint.com/packages serena main upstream import backport
          deb http://mirror.sov.uk.goscomb.net/ubuntu xenial main restricted universe multiverse
          deb http://mirror.sov.uk.goscomb.net/ubuntu xenial-updates main restricted universe multiverse
          deb http://mirror.sov.uk.goscomb.net/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/webupd8team-java-xenial.list
          deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
          deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main


hydrurga 02-13-2017 04:22 PM

Ok, thanks. Looks good to me, although that first dukto one is in a form I've never seen before.

So, let's bring your system up to date before addressing the Kodi problem.

apt update

apt upgrade

Please paste any errors.

dissposablehero 02-13-2017 04:32 PM

Quote:

Originally Posted by hydrurga (Post 5670032)
Ok, thanks. Looks good to me, although that first dukto one is in a form I've never seen before.

So, let's bring your system up to date before addressing the Kodi problem.

apt update

apt upgrade

Please paste any errors.

For apt update I saw this at the end:

Code:

W: http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_16.04/Release.gpg: Signature by key 1A2E38D61775C3963A039A87E3757B8E0D988D6E uses weak digest algorithm (SHA1)
For apt upgrade:
Code:

Warning: No support for locale: en_GB.utf8

Code:

Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.

hydrurga 02-13-2017 04:45 PM

Ok. Let's try adding the ppa again:

sudo add-apt-repository ppa:team-xbmc/ppa

dissposablehero 02-13-2017 04:51 PM

Hi hydrurga,

Thanks for the help so far. Got the same error - looks the same anyway:

Code:

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1551, in <module>
    codename = config_parser.get("general", "base_codename")
  File "/usr/lib/python2.7/ConfigParser.py", line 330, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'general'


Habitual 02-13-2017 04:54 PM

Quote:

Originally Posted by dissposablehero (Post 5669977)
Anyone have any ideas?

"Linux Mint" = Ihaztoaster.

Instructions:
https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa

dissposablehero 02-13-2017 04:56 PM

Code:

System:    Host: HPProbook Kernel: 4.4.0-62-generic x86_64 (64 bit)
          Desktop: Cinnamon 3.2.7  Distro: Linux Mint 18.1 Serena


hydrurga 02-13-2017 05:00 PM

Quote:

Originally Posted by dissposablehero (Post 5670046)
Hi hydrurga,

Thanks for the help so far. Got the same error - looks the same anyway:

Code:

Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1551, in <module>
    codename = config_parser.get("general", "base_codename")
  File "/usr/lib/python2.7/ConfigParser.py", line 330, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'general'


:-) Bizarre. For info, it worked ok on my Mint system. Can you run Software Sources, uncheck all the sources in the PPAs and Additional Repositories sections, close Software Sources, and then try running the add-apt-repository command again?

dissposablehero 02-13-2017 05:09 PM

Quote:

Originally Posted by hydrurga (Post 5670050)
:-) Bizarre. For info, it worked ok on my Mint system. Can you run Software Sources, uncheck all the sources in the PPAs and Additional Repositories sections, close Software Sources, and then try running the add-apt-repository command again?

I cant seem to load "Software Sources" it asks for my password, I click OK and the box disappears but nothing pops up. Did a reboot and tried again but no dice.

hydrurga 02-13-2017 05:11 PM

Quote:

Originally Posted by dissposablehero (Post 5670055)
I cant seem to load "Software Sources" it asks for my password, I click OK and the box disappears but nothing pops up. Did a reboot and tried again but no dice.

Can you run software-sources from the command line? Please paste any error messages if it fails.


All times are GMT -5. The time now is 08:56 PM.