5.1 to 6.0 update - library problem

Thanks.
My personal libraries are out of the equation right now, and are fortunately under $HOME, where they won’t be disturbed.
My primary goal is getting the standard libraries to work.

I’m doing a rollback now to the 5.1 system state and will try again.

OK, did a rollback, system back to previous (5.1) state now.
It seems the problem is perhaps earlier in the install process.
When installing the PPA, I get the following error after the software cache updates:
“pk-client-error-quark: could not do untrusted question as no klass support (8)”

Searching the interwebs, this seems to be a Python problem:

It only happens with the KiCAD PPA, though. Adding other PPAs give no problems.
Any ideas?

Well, well, well…
Things are coming together. The instructions/recipe here is a bit off:

I wonder how anyone installed 6.0 on Ubuntu until now.
Installing KiCAD itself is no problem. But the libraries… I think this output from my shell says it all:

macro@macro-pc:~$ sudo apt install kicad-library
Reading package lists… Done
*Building dependency tree *
Reading state information… Done
Package kicad-library is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
kicad-libraries

E: Package ‘kicad-library’ has no installation candidate

macro@macro-pc:~$ sudo apt install kicad-libraries
Reading package lists… Done
*Building dependency tree *
Reading state information… Done
The following packages will be upgraded:
kicad-libraries
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
Need to get 0 B/1.404 B of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database … 309960 files and directories currently installed.)
Preparing to unpack …/kicad-libraries_6.0.2-0-202202110812+8~ubuntu20.04.1_all.deb …
Unpacking kicad-libraries (6.0.2-0-202202110812+8~ubuntu20.04.1) over (5.1.12-202111050917+8~ubuntu20.04.1) …
Setting up kicad-libraries (6.0.2-0-202202110812+8~ubuntu20.04.1) …
macro@macro-pc:~$

The difference between singular and plural has evaded someone…

UPDATE: The above “kicad-libraries” command also didn’t work.
This is my next try:

macro@macro-pc:~$ sudo apt install kicad-symbols
*[sudo] password for macro: *
Reading package lists… Done
*Building dependency tree *
Reading state information… Done
Suggested packages:
kicad-libraries
The following packages will be upgraded:
kicad-symbols
1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
Need to get 0 B/2.069 kB of archives.
After this operation, 81,9 MB of additional disk space will be used.
(Reading database … 309960 files and directories currently installed.)
Preparing to unpack …/kicad-symbols_6.0.2-0-202202110813+80a17607~7~ubuntu20.04.1_all.deb …
Unpacking kicad-symbols (6.0.2-0-202202110813+80a17607~7~ubuntu20.04.1) over (5.1.12-202111050921+97c0bfdd~7~ubuntu20.04.1) …
Setting up kicad-symbols (6.0.2-0-202202110813+80a17607~7~ubuntu20.04.1) …
macro@macro-pc:~$

Brilliant. After trying a couple of times, this seems to work. I can now access the libraries again and get no errors. Phew! I’m so happy this site exists :slight_smile:

It seems I had several problems at the same time.

1 Like

Past tense problems… Hoo-bloody-ray! :grinning:

Now, about installing 6.99…

As I’ve said before, I think those Ubuntu instructions need a rewrite. They should present installing the whole shebang as the normal case, and only mention at the end the possibility of omitting the libraries for people who know what they are doing.

In other distros, the libraries are required dependencies so it’s not possible to omit them.

2 Likes

Would you care to file a bug report?

Be my guest, you’re an Ubuntu package user, I’m not, so you are in a better position to track progress.

Done: https://gitlab.com/kicad/code/kicad/-/issues/11045

@retiredfeline ,
Please forgive the plagiarism; I was unable to compose a report more succinctly. :slightly_smiling_face:

I’ve been trying to recall how I loaded kicad 6… age related problem; memory failing.
Linux Mint has an update manager. I’m fairly sure I just used that to install both 6 & 6.99. It was a one click and “just happened” for both programs.

1 Like

I think if you had an earlier release of the library packages they will pull in the updates. It’s the first timers who get tripped up when they don’t install library packages.

Hmmm,

My 5.1.12 morphed to 6.0.0 and my 5.99 to 6.99.
At the time, I was a little surprised that 5.1.12 and its libraries just disappeared. I had expected 5.1.12 and 6.0.0 to install alongside each other and to have to uninstall 5.1.12 eventually.

The OP was using 5.1.12 on Lubuntu which isn’t Mint, so who knows?

Hopefully your rewrite suggestion will solve future users future frustrations.

On Linux if the package names are the same the higher version release packages supersede the lower ones. So some package names include the version number where both must coexist, e.g. Python, PHP.

The exact problem was, that the Ubuntu instructions tell you to install kicad-library.
This fails, and the Ubuntu installer then suggests kicad-libraries instead. This also fails, but the install is at this point corrupted.
Running the rm command proposed by retiredfeline cleans the system and let’s you install kicad-symbols.
Then it works! The initial problem is wrong instructions on the kicad.org Ubuntu page.

Your understanding is incorrect. Installing the correct packages is an earlier problem. The rm command clears one’s personal configuration so that the library tables can be set up correctly if they were wrong due to missing packages. It cannot affect what happened or will happen with the system packages. It’s like a factory reset button, if you like, but only for a user’s configuration. It’s important to understand the distinction between the system’s and the user’s resources.

It’s also debatable whether you were really missing the library packages. You could also have caused the issue by taking the wrong choice at the first time setup dialog, after which the setting “stuck”.

I should warn people not to adopt this as a solution for all kinds of issues without understanding. For example if you have already customised your KiCad setup, with choice of display rendering, auto backup settings, and all sorts of parameters, you will lose all that when you clear the configuration. If you are just starting off, then you have nothing to lose anyway.

1 Like

@retiredfeline, Thank You.
You apparently know what you talk about.

That does not change the fact, that an incredibly shoddy kicad.org install page leads people into trouble. I’m the guy having a backup/restore system saving my behind every time. Not everyone has that.

The kicad.org 6.0.2 site tells you to install “kicad-library”. WRONG!!
The kicad.org 6.0.2 site tells you to install “kicad-doc”. WRONG!!

Both statements could be changed on the web site in one minute. But no one cares.

And I still don’t know how to get the documentation installed.

2 Likes

Besides the current instructions are questionable on the Download site for Ubuntu you should get familiar with the package tools within a Debian based distribution. The graphical and also the CLI based package manager provide options to search for packages or names. Without a basic knowledge how to use that you will again and again get some friction due unexpected things that will happen.

To get a better understanding about the relationship between the various KiCad packages that are provided in Debian and Ubuntu I’ve made graphic for the KiCad Wiki page in Debian. It’s still valid also for KiCad 6.x as there hasn’t changed anything to this.

The package kicad-libraries is a virtual package, means it only depend on other “real” packages that are mostly needed together. But you don’t need to install that package, you could also just install one of the depending packages, or all of them. If you are unsure then please use the virtual package instead of the manual installation!

The split off into 3 additional packages did happen because not every time all of the library related packages need to get an update once the main application package gets an update. E.g. not always will the templates get an update too.

And I still don’t know how to get the documentation installed.

Well, as written above. Get in touch with the package tools within your distribution, Windows doesn’t have something similar. I’m more working on the CLI so that’s how I basically start to search for packages.

$ apt-cache search kicad | grep doc
kicad-doc-ca - Kicad help files (Catalan)
kicad-doc-de - Kicad help files (German)
kicad-doc-en - Kicad help files (English)
kicad-doc-es - Kicad help files (Spanish)
kicad-doc-fr - Kicad help files (French)
kicad-doc-id - Kicad help files (Indonesian)
kicad-doc-it - Kicad help files (Italian)
kicad-doc-ja - Kicad help files (Japanese)
kicad-doc-pl - Kicad help files (Polish)
kicad-doc-ru - Kicad help files (Russian)
kicad-doc-zh - Kicad help files (Chinese)
1 Like

I re-opened the issue, if it makes you feel better.

Usually if something self-evident is ignored, it’s about some misunderstanding or miscommunication, not about “not caring”.

1 Like

My apologies, very bad phrasing on my side. What I meant to say was, that the command resets my settings, allowing a new (correct) install of kicad-symbols.

@tijuca:
Thanks, but I don’t feel that a normal user should need to go this deep into the install.
Thank you for the reference to the correct documentation packages.
kicad-doc-en installed with no problems.

1 Like

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