Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel

More
25 Feb 2023 22:44 #265364 by rayharris
Hi! Ubuntu has made their real time kernel for 22.04 generally available. Are there any plans to make Linux CNC 2.8 (or newer) compatible with it?

Here's my kernel info:

$ uname -rvmpio
5.15.0-1032-realtime #35-Ubuntu SMP PREEMPT_RT Tue Jan 24 11:45:03 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I downloaded the debian package for linuxcnc-uspace and tried to install it, but it doesn't work. Here's the output:

$ sudo apt install ./linuxcnc-uspace_2.8.4_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linuxcnc-uspace : Depends: libboost-python1.67.0 but it is not installable
                   Depends: libpython2.7 (>= 2.7) but it is not installed
                   Depends: libreadline5 (>= 5.2) but it is not installable
                   Depends: python2.7-tk
                   Depends: python2.7-numpy but it is not installable or
                            python-numpy but it is not installable
                   Depends: python2.7-imaging but it is not installable or
                            python-imaging but it is not installable or
                            python-pil but it is not installable
                   Depends: python2.7-imaging-tk but it is not installable or
                            python-imaging-tk but it is not installable or
                            python-pil.imagetk but it is not installable
                   Depends: python-gtksourceview2 but it is not installable
                   Depends: python-gst-1.0 but it is not installable
                   Depends: python-xlib but it is not installable
                   Depends: python-gtkglext1 but it is not installable
                   Depends: python-configobj but it is not installable

I tried 'sudo apt --fix-broken install', but all it does is remove linuxcnc-uspace from the dpkg database.

Just looking at the first dependency, 22.04 only has libboost-python1.74.0 available, but 2.8.4 requires 1.67.0

So, will a later version of LinuxCNC support Ubuntu 22.04 RT or should I look at switching to Debian? Thanks

Please Log in or Create an account to join the conversation.

More
25 Feb 2023 23:06 #265367 by rodw
Linuxcnc 2.8 uses Python 2.7 which has since been dropped from the Linux distros as its obsolete. Later versions of Linuxcnc (2.9 and above) use Python 3.x Its not surprising you had problems.

If you must use Ubuntu, use their Kinetic release as linuxcnc-uspace is included in their repositories.

Please Log in or Create an account to join the conversation.

More
26 Feb 2023 15:29 #265420 by rayharris
The PC is a desktop from Sherline and came with Ubuntu 20.04 with the realtime patches. I finally got a WiFi adapter so I can apply updates. I had seen where Ubuntu Pro would let you apply the Canonical real time patch to 22.04 LTS and so I thought I try it out. I haven’t programmed in Python in several years so I didn’t realize 2.x had been dropped.

I’ll give 22.10 (Kinetic) a shot and if I can’t get that to work, I’ll wipe and reload 20.04 from Sherline and be more careful with updates.

Thanks for the help!

Please Log in or Create an account to join the conversation.

More
26 Feb 2023 20:35 #265439 by rodw
If you are converting from a version of linuxcnc before 2.8, there have been some changes. It should get updated when you first run it, but if it doesn't you might need to make some changes.

Please Log in or Create an account to join the conversation.

More
06 Dec 2024 16:27 #316116 by tommylight
Get Debian with the Mate or GNOME desktops, it is miles better than XFCE.
And, yes, it still has issues, Debian issues, but much less than before. Talking about 12 here.

Please Log in or Create an account to join the conversation.

More
07 Dec 2024 02:39 #316151 by tommylight
XFCE has it's place, well deserved.
You can use Linux Mint Debian Edition 6, it works better than any Ubuntu after 10.04, and better than any Debian and that is really strange, but hey, it works. I used it for roughly 6 months on several PC and did not have Debian issues (disappearing stuff from panels, stuff crashing, again rarely), except once.
Installing LinuxCNC is the now standard set of two lines:
sudo apt update
sudo apt install linuxcnc-uspace
You can also use any version of Mint, but LinuxCNC must be built from sources.
-
Did you try installing a Debian RT kernel?
That usually works, as simple as downloading and installing using gdebi. Try this
ftp.debian.org/debian/pool/main/l/linux-..._6.10.12-1_amd64.deb

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds
Powered by Kunena Forum