[Solved] Problem downloading/installing KiCad from main site. - Page 1
Forum section: electronics / general

author: Sceptic
author_rank: Newbie
timestamp: January 26, 2024, 06:49:33 pm
content: Hi all,First, I'm on Ubuntu:Code:xxx@xxx:~$ uname -aLinux Node1 6.5.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 9 17:03:36 UTC 2024 x86_64 x86_64 x86_64 GNU/LinuxI'm trying to update to 7.0.10 from 7.0.7 which is found in the Ubuntu repo currently.Second, If I doCode:sudo add-apt-repository ppa:kicad/kicad-7.0-releasesI'll get the following error/message:Code:sh: 1: /usr/lib/linuxmint/mintSources/mintSources.py: not foundI did get this problem with the 6.x.x series as well but never pursued the problem further back then.Has anyone ran into this problem and/or found a solution for this?This is solved; please see reply #11.Sceptic

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 26, 2024, 09:34:06 pm
content: Why not ask in Ubuntu's forums instead?

author: Benta
author_rank: Super Contributor
timestamp: January 26, 2024, 10:42:29 pm
content: Just do:sudo apt updatesudo apt upgradeThen you'll be on 7.0.10

author: shapirus
author_rank: Super Contributor
timestamp: January 26, 2024, 11:22:27 pm
content: Yeah basically external repos (PPAs) aren't needed, unless you're after the latest nightly builds. It's in standard repositories:https://packages.ubuntu.com/search?keywords=kicad&searchon=names&suite=all&section=all

author: retiredfeline
author_rank: Frequent Contributor
timestamp: January 26, 2024, 11:53:42 pm
content: The problem with the official Ubuntu repos is only older KiCad versions are available for older Ubuntu releases that still in support. For example the official repo has only v6 for Jammy, but the KiCad PPA has up to date v7 packages for Jammy.

author: Sceptic
author_rank: Newbie
timestamp: January 27, 2024, 08:52:14 am
content: Quote from: SiliconWizard on January 26, 2024, 09:34:06 pmOne has to start somewhere, no?As the instructions for adding the ppa and update is on the official KiCad site, I thought maybe other KiCad users had seen this issue as well.It seems to me that this forum has a lot of users, so potentially the chances that someone facing the same issue is higher.

author: Sceptic
author_rank: Newbie
timestamp: January 27, 2024, 08:53:09 am
content: Quote from: Benta on January 26, 2024, 10:42:29 pmIf I could add the ppa, then yes.

author: Sceptic
author_rank: Newbie
timestamp: January 27, 2024, 09:06:08 am
content: Quote from: shapirus on January 26, 2024, 11:22:27 pmIf you go tohttps://www.kicad.org/download/linux/and under "Officially-supported Platforms" (for Ubuntu), the first paragraph says:QuoteIt seems to me that, following your link, 7.0.10 will end up in Noble (Ubuntu 24.04), so I could probably wait 3 month for that, but wait! Isn't the 8.x.x series expected end of January?

author: retiredfeline
author_rank: Frequent Contributor
timestamp: January 27, 2024, 09:36:16 am
content: Hmm, are you on Ubuntu or Mint? From the missing filename you mentioned it sounds like you are on Mint, in which case you should ask on a Mint forum. (I'm not a Mint user.) On the other hand if you are really on Ubuntu, then what is that interloper file from Mint doing there?

author: shapirus
author_rank: Super Contributor
timestamp: January 27, 2024, 09:40:21 am
content: Quote from: Sceptic on January 27, 2024, 09:06:08 amThere are ways. You can do any of:1) add the Noble repositories in /etc/apt/sources.list[.d], then install kicad 7.0.10 and let it pull the dependencies it needs -- but this will update parts of your system with packages from what will become Noble; it usually works fine for advanced users; YMMV, this assumes more than basic knowledge of dpkg, apt, and the principles of debian package management in general.2) pull the deb source package for 7.0.10 from Noble (for which you need to add the respective deb-src, and only deb-src, to your sources.list) and build your own deb package that will have your current distro's library versions as dependencies -- this is the safest and usually the easiest way, when installing existing binary packages fails for whatever reason3) same as 2, but add KiCad external repositories and pull the source packages from there, for whatever version you need. If you go this far, then there's no reason not to try 8.0, since it's pretty close to be released and is very usable as it is now. Once released, you can easily update the package (which may or may not need to be built from source on your system).Whatever you do, before installing any new package, usedpkg -l|grep kicadanddpkg-repackto save a copy of what kicad-related packages are currently installed so that you can reinstall them if things go wrong. Also make sure you back up your ~/.config/kicad and ~/.local/share/kicad before running an updated version.p.s. note that option 3 is distro-agnostic: it will (usually) work for any Debian derivative.p.p.s. that mint-related error looks weird, as though you were on Mint at some point and then switched to Ubuntu, or installed some Mint packages manually etc. -- is the error the same for any PPA that you're trying to add, and not just kicad's?You may grep for/usr/lib/linuxmint/mintSources/mintSources.pyin /usr/bin and /usr/lib to find out where it's coming from and/orsudo apt reinstall software-properties-common(which contains apt-add-repository) for an easy attempt to fix it. Alsodpkg -l|grep mint,grep -r mint /etc/apt.

author: Sceptic
author_rank: Newbie
timestamp: January 27, 2024, 10:27:17 am
content: Quote from: retiredfeline on January 27, 2024, 09:36:16 amI'm on Ubuntu. I have never installed or used Mint on this machine or other machines.It's possible that I have installed something that pulled in some Mint stuff at some point, but I've no idea what that would be.

author: Sceptic
author_rank: Newbie
timestamp: January 27, 2024, 11:13:18 am
content: Quote from: shapirus on January 27, 2024, 09:40:21 amThank you for your various suggestions. Unfortunately none of them solves the root cause of the issue.I did reinstall software-properties-common as suggested in a post I found while searching the net, but it didn't help.Fortunately, I found a clue in this post:https://askubuntu.com/questions/825491/unable-to-add-apt-repository-in-ubuntu-server-14-04I didCode:sudo updatedbthenCode:locate add-aptand the result was:Code:/usr/bin/add-apt-repository/usr/local/bin/add-apt-repository/usr/share/bash-completion/completions/add-apt-repository/usr/share/man/man1/add-apt-repository.1.gzSo I have two versions of add-apt-repository.My $PATH looks like this:Code:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/binI just renamed the version in the /usr/local/bin directory (because it's searched before /usr/bin) and, lo and behold, I could add the repo using KiCads instructions, so I'm on 7.0.10 nowHow that version (for Mint?) ended up in /usr/bin/local I don't know.I think it's time to do a fresh install on this machine; I've just been upgrading it whenever there is a new Ubuntu version out.Thanks

author: djsb
author_rank: Super Contributor
timestamp: January 27, 2024, 11:41:13 am
content: I just upgraded 5 minutes ago my Mint installation to 21.3 "Virginia". I'm using the PPA debhttp://ppa.launchpad.net/kicad/kicad-dev-nightly/ubuntujammy main.My kicad nightly was today updated to Kicad V8.00RC2. Hope that helps.