LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-13-2017, 05:12 PM   #16
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 35

Original Poster
Rep: Reputation: 6

Code:
Traceback (most recent call last):
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 1558, in <module>
    Application().run()
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 716, in __init__
    if self.config["general"]["use_ppas"] == "false":
KeyError: 'general'
 
Old 02-13-2017, 05:24 PM   #17
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
Ok, assuming that there isn't a problem with the apt Python files themselves (there could well be, but we'll exhaust other possibilities first), we'll need to temporarily move the non-official repo sources files to another location.

But first,

cd /etc/apt/sources.list.d

Just to check that there are no real oddities in there:

ls -la
 
Old 02-13-2017, 05:29 PM   #18
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 35

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by hydrurga View Post
Ok, assuming that there isn't a problem with the apt Python files themselves (there could well be, but we'll exhaust other possibilities first), we'll need to temporarily move the non-official repo sources files to another location.

But first,

cd /etc/apt/sources.list.d

Just to check that there are no real oddities in there:

ls -la

Code:
total 28
drwxr-xr-x 2 root root 4096 Jan  1 10:07 .
drwxr-xr-x 6 root root 4096 Jan  1 10:08 ..
-rw-r--r-- 1 root root   79 Jan  1 10:07 dukto.list
-rw-r--r-- 1 root root  189 Dec 26 21:38 google-chrome.list
-rw-r--r-- 1 root root  120 Dec 26 21:54 numix-ppa-xenial.list
-rw-r--r-- 1 root root  537 Dec 26 21:28 official-package-repositories.list
-rw-r--r-- 1 root root  134 Dec 26 23:15 webupd8team-java-xenial.list
 
Old 02-13-2017, 05:42 PM   #19
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
Thanks. Let's make a copy of all the repo list files, but only leave the official list in sources.list.d:

cd /etc/apt/

sudo mv sources.list.d disposablehero (as good a name as any)

sudo mkdir sources.list.d

sudo cp disposablehero/official-package-repositories.list sources.list.d


Then try running software-sources again.
 
Old 02-13-2017, 06:38 PM   #20
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 haven't heard back from you and I need to go to sleep, so if anything goes wrong, you can restore your previous setup with:

cd /etc/apt/

sudo rm -r sources.list.d

sudo mv disposablehero sources.list.d
 
Old 02-13-2017, 08:11 PM   #21
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486
Maybe I'm not really understanding your problem... I'm running Mint 18 and just used the Software Manager to install Kodi. I then searched for Youtube for a video of how find add-ons which I think gives info on repository additions (see 'System' > 'Settings' > 'add ons' > 'Add from Repository' within Kodi for repository info)

Sorry, not a very detailed post but maybe slightly useful?

Play Bonny!

 
Old 02-13-2017, 11:50 PM   #22
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 35

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by hydrurga View Post
Thanks. Let's make a copy of all the repo list files, but only leave the official list in sources.list.d:

cd /etc/apt/

sudo mv sources.list.d disposablehero (as good a name as any)

sudo mkdir sources.list.d

sudo cp disposablehero/official-package-repositories.list sources.list.d


Then try running software-sources again.
Hi,

Apologies, I fell asleep . I performed the above steps but got the same error when attempting to run software-sources

Code:
    Application().run()
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 716, in __init__
    if self.config["general"]["use_ppas"] == "false":
KeyError: 'general'
 
Old 02-14-2017, 12:12 AM   #23
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
Hi,

Apologies, I fell asleep . I performed the above steps but got the same error when attempting to run software-sources

Code:
    Application().run()
  File "/usr/lib/linuxmint/mintSources/mintSources.py", line 716, in __init__
    if self.config["general"]["use_ppas"] == "false":
KeyError: 'general'
You and me both. Ok, we'll need to dig deeper. My apologies for this.

Following https://forums.linuxmint.com/viewtopic.php?t=188986, can you please post the output from:

cat /etc/linuxmint/mintSystem.conf
 
Old 02-14-2017, 11:16 AM   #24
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
To the OP:
Have you tried to upgrade python on this system?

Last edited by Habitual; 02-14-2017 at 11:17 AM. Reason: s/update/upgrade
 
Old 02-14-2017, 02:03 PM   #25
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 35

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by hydrurga View Post
You and me both. Ok, we'll need to dig deeper. My apologies for this.

Following https://forums.linuxmint.com/viewtopic.php?t=188986, can you please post the output from:

cat /etc/linuxmint/mintSystem.conf

Hi hydrurga,

No need to apologise - thanks for the help.

All that came up for the above code was:

Code:
[global]
enabled = True

[restore]

Quote:
Originally Posted by Habitual View Post
To the OP:
Have you tried to upgrade python on this system?
Hi Habitual,

Not that I am aware of.
 
Old 02-14-2017, 02:20 PM   #26
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
Hi hydrurga,

No need to apologise - thanks for the help.

All that came up for the above code was:

Code:
[global]
enabled = True

[restore]
Same as I have. I think Habitual may be close to the truth - it looks as if Python, apt, and/or software sources are misconfigured somehow. May well be above my pay grade. Re-installing Python would be quite demanding, the other two a little less but involving a number of dependency-related walls to clamber over.

Anyway, in the hope that someone else who knows more than I do comes to the fore, or at least while I mull this over, can you post the output from:

lsb_release -a
 
Old 02-14-2017, 02:25 PM   #27
dissposablehero
Member
 
Registered: Nov 2007
Distribution: Mint/Ubuntu/Elementary
Posts: 35

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by hydrurga View Post
Same as I have. I think Habitual may be close to the truth - it looks as if Python, apt, and/or software sources are misconfigured somehow. May well be above my pay grade. Re-installing Python would be quite demanding, the other two a little less but involving a number of dependency-related walls to clamber over.

Anyway, in the hope that someone else who knows more than I do comes to the fore, or at least while I mull this over, can you post the output from:

lsb_release -a
No problem, thanks for the help so far - at least we've narrowed it down.

Code:
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04 LTS
Release:	16.04
Codename:	xenial
 
Old 02-14-2017, 04:42 PM   #28
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
On LinuxMint in the last 6 or so releases, one can execute
Code:
mintsources
and authenticate and then be presented with "Software Sources"
 
Old 02-14-2017, 04:56 PM   #29
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
On LinuxMint in the last 6 or so releases, one can execute
Code:
mintsources
and authenticate and then be presented with "Software Sources"
mintsources is a symbolic link to software-sources which is what the OP has been trying to run.
 
Old 02-14-2017, 05:06 PM   #30
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
mintsources is a symbolic link to software-sources which is what the OP has been trying to run.
Thanks.

I'm out.
 
  


Reply

Tags
mint-18



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 07:48 PM
Crash Log Issue (Kodi) iHateErrors Linux - Newbie 0 03-07-2016 07:44 AM
Issue adding multiple DNS servers on Linux Mint lamic Linux - Networking 3 09-02-2015 05:11 PM
Ubuntu Maverick live CD repository packages not found / adding packages to repository phed0ra Linux - Newbie 1 01-10-2012 03:00 AM
Arch linux repository issue WinterMadness Linux - Software 8 03-04-2010 04:09 PM

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

All times are GMT -5. The time now is 09:42 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