FAILED re-installing kicad 5.1 x86_64 from PPA on debian stretch

I tried to update kicad 5.0.2 to kicad 5.1 by following js-reynaud’s
instructions at https://launchpad.net/~js-reynaud/+archive/ubuntu/kicad-5.1
and FAILED.

[code]root@solydk1:/home/user# add-apt-repository ppa:js-reynaud/kicad-5.1
This PPA host version of KiCad 5.1

To use it:

sudo add-apt-repository ppa:js-reynaud/kicad-5.1
sudo apt-get update
sudo apt install kicad
to have a full install:
sudo apt install --install-suggests kicad

If you don’t do a “full installation” you should be interested to install also:

  • kicad-libraries: a virtual package that will recommend you to install footprints, symbols, templates and 3D
  • kicad-symbols, kicad-templates, kicad-footprints, kicad-packages3d: if you want to manually select what library to install.
  • kicad-locale-XX: locales for your language (XX is your contry code. see apt search kicad-locale to find available languages)
  • kicad-doc-XX: documentation in your language. Same remark than kicad-locale-XX

** If you are using daily build AND want to stay in 5.1: **
You must remove daily build ppa from your sources and remove any existing kicad packages before installing any 5.1 version.
Keep in mind that daily build package will be always more recent than any release packages.
More info: https://launchpad.net/~js-reynaud/+archive/ubuntu/kicad-5.1
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keybox ‘/tmp/tmpfqv12rg3/pubring.gpg’ created
gpg: /tmp/tmpfqv12rg3/trustdb.gpg: trustdb created
gpg: key 83FBAD2D910F124E: public key “Launchpad PPA for j2010” imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: no valid OpenPGP data found.
Exception in thread Thread-1:
Traceback (most recent call last):
File “/usr/lib/python3.5/threading.py”, line 914, in _bootstrap_inner
self.run()
File “/usr/lib/python3.5/threading.py”, line 862, in run
self._target(*self._args, **self._kwargs)
File “/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py”, line 688, in addkey_func
func(**kwargs)
File “/usr/lib/python3/dist-packages/softwareproperties/ppa.py”, line 386, in add_key
return apsk.add_ppa_signing_key()
File “/usr/lib/python3/dist-packages/softwareproperties/ppa.py”, line 273, in add_ppa_signing_key
cleanup(tmp_keyring_dir)
File “/usr/lib/python3/dist-packages/softwareproperties/ppa.py”, line 234, in cleanup
shutil.rmtree(tmp_keyring_dir)
File “/usr/lib/python3.5/shutil.py”, line 480, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File “/usr/lib/python3.5/shutil.py”, line 438, in _rmtree_safe_fd
onerror(os.unlink, fullname, sys.exc_info())
File “/usr/lib/python3.5/shutil.py”, line 436, in _rmtree_safe_fd
os.unlink(name, dir_fd=topfd)
FileNotFoundError: [Errno 2] No such file or directory: ‘S.gpg-agent.ssh’

root@solydk1:/home/user# apt install --install-suggests kicad
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
kicad : Depends: libc6 (>= 2.29) but 2.24-11+deb9u4 is to be installed
Depends: libcurl4 (>= 7.16.2) but it is not installable
Depends: libglew2.1 (>= 1.12.0) but it is not installable
Depends: liboce-foundation11 but it is not installable
Depends: liboce-modeling11 but it is not installable
Depends: liboce-ocaf-lite11 but it is not installable
Depends: liboce-ocaf11 but it is not installable
Depends: libpython3.7 (>= 3.7.0) but it is not installable
Depends: libstdc++6 (>= 7) but 6.3.0-18+deb9u1 is to be installed
Depends: libwxbase3.0-0v5 (>= 3.0.4+dfsg) but 3.0.2+dfsg-4 is to be installed
Depends: libwxgtk3.0-gtk3-0v5 (>= 3.0.4+dfsg) but it is not going to be installed
Depends: python3-wxgtk4.0 but it is not installable
Recommends: kicad-libraries but it is not going to be installed
Recommends: kicad-doc-en but it is not going to be installed
Suggests: extra-xdg-menus but it is not going to be installed
Suggests: kicad-demo (>= 5.1.0-stable-201903082042+060a0da~80~ubuntu19.04.1) but it is not going to be installed
Suggests: kicad-locale-ko but it is not going to be installed or
kicad-locale-ru but it is not going to be installed or
kicad-locale-pl but it is not going to be installed or
kicad-locale-pt but it is not going to be installed or
kicad-locale-ja but it is not going to be installed or
kicad-locale-id but it is not installable or
kicad-locale-ca but it is not going to be installed or
kicad-locale-it but it is not going to be installed or
kicad-locale-el but it is not going to be installed or
kicad-locale-zh but it is not going to be installed or
kicad-locale-de but it is not going to be installed or
kicad-locale-sl but it is not going to be installed or
kicad-locale-cs but it is not going to be installed or
kicad-locale-bg but it is not going to be installed or
kicad-locale-sv but it is not going to be installed or
kicad-locale-lt but it is not going to be installed or
kicad-locale-fi but it is not going to be installed or
kicad-locale-fr but it is not going to be installed or
kicad-locale-hu but it is not going to be installed or
kicad-locale-nl but it is not going to be installed or
kicad-locale-es but it is not going to be installed or
kicad-locale-sk but it is not going to be installed
E: Unable to correct problems, you have held broken packages. [/code]

So this didn’t work on debian stretch. (No, it’s not an ubuntu derivative.)

Did I (a) forget to do something important first that prevented this technique from
working? or (b) is there something else wrong?

This is only the second time I have used (tried to use) a PPA, so maybe I goofed.

I used su rather than sudo.

I did not cd after logging in as superuser. Would that make a difference ?

Not sure if this is correct, since it says ubuntu:

[code]user@solydk1:~$ cat /etc/apt/sources.list.d/js-reynaud-ubuntu-kicad-5_1-disco.list.save
deb http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu disco main

deb-src http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu disco main

user@solydk1:~$ cat /etc/apt/sources.list.d/js-reynaud-ubuntu-kicad-5_1-disco.list
deb http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu disco main

deb-src http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu disco main

deb-src http://ppa.launchpad.net/js-reynaud/kicad-5.1/ubuntu disco main

[/code]

So I still have 5.0.2 installed on 4-core x86_64. Any ideas ?

Short answer is that software for Ubuntu and Debian is packaged slightly differently from each other. Most often, a package version available in one distribution is not available in the other and vice versa. Generally, it is not a very good idea to mix packages from different distributions, but sometimes it works. This time it didn’t :frowning:

From there you have three options:

  1. Switch to ubuntu.
  2. Wait until Kicad 5.1.0 appears in Debian. I’d say this is not going to happen soon, since Debian is in freeze before release of Buster.
  3. Build from sources. This method has its own set of complications and drawbacks but if you absolutely need v5.1.0 right now, I’m afraid it is the only way.

HTH,
Eugene

1 Like

This isn’t fully correct.
Most of the package are technically packaged completely equally. But it’s of course a bad idea to mix distributions. If you use Ubuntu than please just use packages for Ubuntu. If you work on Debian than also use only packages from the Debian repositories. See also https://wiki.debian.org/DontBreakDebian

KiCad 5.1.0 will arise in Stretch once 5.1.0 is accepted into Debian Testing aka Buster (as that’s the rule for backports) and I get time to work on the packaging.

1 Like

Thank you both for the update. I will simply wait until someone makes a kicad 5.1.0 debian package for debian stretch. I am in no hurry.

Does Flatpak work with Stretch?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.