Hi all,
New start. I finally had time to try an upgrade again. But with limited success.
5.1 projects open and display OK.
But the symbol libraries create major problems.
I use the default 5.1 symbol libraries.
Even the default 5.1 libraries make trouble. Installation prompted me for a “recommended” library update, which I selected.
1: I open a 5.1 project, no problems.
2: I try to insert a part and get this:
Hi,
Did you install using the shell?
You are using Mint from memory… correct?
Did you download the “6” libraries when prompted?
When you go to your kicad global libraries by Preferences / Manage Symbol Libraries / Global Libraries, does the “Library Format” for each Official library read Kicad or Legacy?
I’m using Lubuntu 20.04 LTS.
The installation was done using this recipe: Install on Ubuntu | KiCad EDA
1: install the PPA, which went OK (it’s in the PPA list).
2: install the program, documentation and libraries using Muon.
KiCad found your previous installed library table file and used that.
You should, search for *.kicad_sym in your system and copy their location.
Then, either you find that KICAD_SYMBOL_DIR variable inside KiCad and update the path with the previously copied one, or, (my suggestion) git clone the official symbols repo in a location of your preference, and use that location to import sym-lib-table file into KiCad and then update the correct KICAD6_SYMBOL_DIR variable inside KiCad, or add all those libraries one by one from the new “cloned” location (and remove all old entries from there).
Something similar for the rest i guess. (footprints and 3d models)
Edit: ‘KICAD_SYMBOL_DIR’ was replaced by the KICAD6_SYMBOL_DIR variable for v6 and *.lib and *.dcm are gone now. New file type is *.kicad_sym
First check that you have all the required v6 packages, and none of the v5:
dpkg -l | grep -i '^‘ii.*kicad’
You should have the v6 program and library packages and none of the v5 packages. If there are any v5 packages, remove them.
The problem with the migration procedure is that if it isn’t done correctly the first time, the error persists. This is indicated by the fact that the path variable isn’t KICAD6_SYMBOL_DIR in your cae. To return to a blank slate you should delete your personal v6 configuration:
rm -fr ~/.config/kicad/6.0
Check that command thrice before you hit return. Now when you run kicad it will create the configuration files and prompt you with the setup screen. Take the defaults.
When you run the symbol editor to check the libraries, you should get a window like @jmk’s.
Finally if you have any personal libraries you need to add those. And migrate, in the case of footprint libraries.
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
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.
@retiredfeline ,
Please forgive the plagiarism; I was unable to compose a report more succinctly.
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.
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.
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.