LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2017, 06:15 PM   #31
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

Quote:
Originally Posted by Habitual View Post
Thanks.

I'm out.
No you don't. I was hoping you'd take over - I'm running out of ideas! It's almost as if there has been damage caused by a repo belonging to another version at some point in the past. I guess I'll need to go back to the beginning and review everything we've done.
 
Old 02-14-2017, 06:29 PM   #32
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by dissposablehero View Post
Code:
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04 LTS
Release:	16.04
Codename:	xenial
This may be the problem -it should be all Minty goodness, not Ubuntu, or else mintSources.py looks at the wrong config file. Can you run cat /etc/lsb-release (it should be the same as you reported above but it's good to check anyway)?
 
Old 02-14-2017, 08:12 PM   #33
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
way too much yak shaving

Quote:
Originally Posted by hydrurga View Post
No you don't. I was hoping you'd take over - I'm running out of ideas! It's almost as if there has been damage caused by a repo belonging to another version at some point in the past. I guess I'll need to go back to the beginning and review everything we've done.
There's 2 pythons installed on LinuxMint (maybe others),
python2 is the glue that holds the system together. NEVER TOUCH IT, EVER.
python3 is forward-looking to the future.

hydrurga:
You're spot on in my book.
anytime system-level stuff goes bananas it is "usually" the result of inexperience on behalf of the user
when they think python2 should be upgraded. I'm not saying that is what happened but it looks like it from here.

Neither Ubuntu nor Mint is so busted by just "adding a ppa for Kodi" is doing this.
xbmc is in the repo, btw so they don't need to add a repo.

Code:
sudo apt-get install xbmc
does the deed.

Last edited by Habitual; 02-14-2017 at 08:38 PM.
 
Old 02-14-2017, 08:23 PM   #34
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
I have to go off now, so I'll write down my conclusions here (at the very least, so that I remember them in the morning. :-)).

I should have done this from the start: go and take a look at the source code.

A reminder of the error message:

Code:
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'
The lines surrounding line 1551 of /usr/lib/linuxmint/mintSources/mintSources.py (the Python program that Mint uses to organise the software sources) are:

Code:
if len(args) > 1 and (args[0] == "add-apt-repository"):
            ppa_line = args[1]
            lsb_codename = commands.getoutput("lsb_release -sc")
            config_parser = ConfigParser.RawConfigParser()
            config_parser.read("/usr/share/mintsources/%s/mintsources.conf" % lsb_codename)
            codename = config_parser.get("general", "base_codename")
            use_ppas = config_parser.get("general", "use_ppas")
            if options.remove:
                remove_repository_via_cli(ppa_line, codename, options.forceYes)
            else:
                add_repository_via_cli(ppa_line, codename, options.forceYes, use_ppas)
From the third line, lsb_release -sc should return the version of Mint, in this case serena. It gets this information from the /etc/lsb-release file. This is then used on line 5 to point to the relevant mintsources.conf configuration file at /usr/share/mintsources/serena/mintsources.conf (have a look at /usr/share/mintsources/ to see all the versions listed).

However, for some reason, your /etc/lsb-release file is set up as Ubuntu, not Mint, and lsb_release -sc returns xenial (check this). So, when the Python code checks /usr/share/mintsources/xenial/mintsources.conf, it produces an error (it can't find "general" in the config file because the file doesn't exist).

So, to remedy this, or attempt to remedy it (who knows what else might be wrong, but fingers crossed), you need to run:

sudo cp /etc/lsb-release /etc/lsb-release-backup

gksudo xed /etc/lsb-release

and change that file to contain:

Code:
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.1
DISTRIB_CODENAME=serena
DISTRIB_DESCRIPTION="Linux Mint 18.1 Serena"
(I assume that you're running Mint 18.1 - if not, don't do this, and we'll edit it to 18 Sarah).

That's it.
 
1 members found this post helpful.
Old 02-14-2017, 08:50 PM   #35
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Fixing stuff is my Day Job.
I will regroup and let this grok around my skull overnight.

I have some ideas.

I can install his version of whatever in 20m in Vbox, so...
 
Old 02-15-2017, 01:22 AM   #36
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 37

Original Poster
Rep: Reputation: 6
Issue adding Kodi Repository [Linux Mint]

hydrurga. I followed your instructions and changed the contents of the file and it worked a treat!! Software Sources loaded immediately and I was able to add the repo! many thanks. Habitual was right, lack of experience on my part. One last question: I have Kodi installed already, think it's version 15.2, it's the default one available by using the command that Habitual mentioned. What I'm wanting to do is install the latest version hence adding the repo. Do I need to completely uninstall the current version and install from the new repo or can I overwrite? If I need to uninstall can you tell me what steps I need to take?

Thanks again.
 
Old 02-15-2017, 07:04 AM   #37
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Excellent news, dissposablehero. As I said, I should have thought of that earlier. I don't know what the statue of limitations is as regards editing a post, but perhaps you might want to edit your opening post to mention that the solution can be found in post #34 to avoid any future folk from having to wade through this roller-coaster of a thread! Although we've probably both learned quite a bit in the process.

Now that the repo is in place, you should be able to update the package in question with the normal

sudo apt-get update

sudo apt-get upgrade


However, if for some reason you just want to focus on an individual package rather than updating everything, you could use:

sudo apt-get update

sudo apt-get install package


This will prompt you if there is a more up-to-date version of package available in the repos.
 
1 members found this post helpful.
Old 02-15-2017, 07:52 AM   #38
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by dissposablehero View Post
What I'm wanting to do is install the latest version hence adding the repo. Do I need to completely uninstall the current version and install from the new repo or can I overwrite? If I need to uninstall can you tell me what steps I need to take?

Thanks again.
I guess this is where the advice comes in about PPAs. They are the user's responsibility - Clem has said so.
You my good man, have fallen under version-itis, a common Windows affliction.
No harm, No Foul. Been there, trashed that.

In Linux. Latest does not mean greatest.
The versions in the repos are known to work with your OS. It's almost a Lock. Under normal conditions software in the repos will work on the installed system(s).

I am not familiar with Kodi, or xbmc (and I typo that every time) but I know the repo has a version that works, barring exotic variables.
It's all new, but Trust me. 22 years in IT, I could use any desktop/distro except the *BSD inside of 20m.

There is nothing special about software repositories in Linux.
and using them is the recommended method.

Couple of sites I am going to toss at you.
I'm a fan of Links. I may not be able to convey information on a personal level,
so I usually let the Documentation do the conveying.

Some Linux-y stuff for new Linux ambassadors:
http://linux.oneandoneis2.org/LNW.htm
http://linuxnewbieguide.org/

and finally, https://sites.google.com/site/easylinuxtipsproject/ - A great site, by a vetted member of the Mint Forum Community.
### Beginner User Guides ### section has some keepers.


and https://help.ubuntu.com is the Sole Authority in my arsenal, for most things Ubuntu "flavored".
The user guide in LinuxMint is at https://linuxmint.com/documentation.php in several languages.

Using PPAs is "at your own risk" and not it's not just about security or features.
It should be about stability, but that is my opinion based on my experiences.
But the choice is yours.

and another method of investigation when your "toaster" is sick is to ask yourself,
"Self, What are the toaster's defaults?".

Get some!

Last edited by Habitual; 02-15-2017 at 03:46 PM.
 
1 members found this post helpful.
Old 02-15-2017, 12:01 PM   #39
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 37

Original Poster
Rep: Reputation: 6
hydrurga,

Again thanks for the info. I will mark as solved and try and edit the post as you have suggested.

Habitual,

Thanks for all the info. I'll have a read through those pages you've linked to. The reason I wanted the latest Kodi is the features they've added since 15.2 that I am used to using on Andriod & my Windows machines. It isnt of great importance but to be honest, more than anything I wanted to learn more about Linux and solve an issue rather than just wiping the hard drive and starting again (which is what I usually do with Linux).

Thanks again.
 
Old 02-15-2017, 02:20 PM   #40
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out.
There's lots of time to "learn" and lots of timing and learning to do it in?

You are welcome.

Enjoy the goodness.
 
  


Reply

Tags
mint-18


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Kodi freezes on exit, kodi.bin won't die pressman57 Linux - Software 6 12-19-2016 08:48 PM
Crash Log Issue (Kodi) iHateErrors Linux - Newbie 0 03-07-2016 08:44 AM
Issue adding multiple DNS servers on Linux Mint lamic Linux - Networking 3 09-02-2015 06:11 PM
Ubuntu Maverick live CD repository packages not found / adding packages to repository phed0ra Linux - Newbie 1 01-10-2012 04:00 AM
Arch linux repository issue WinterMadness Linux - Software 8 03-04-2010 05:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration