Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel
- rayharris
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 2
 - Thank you received: 0
 
			
	
						25 Feb 2023 22:44				#265364
		by rayharris
	
	
		
			
	
			
			 		
													
	
				Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel was created 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
					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.
- rodw
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 11472
 - Thank you received: 3848
 
			
	
						25 Feb 2023 23:06				#265367
		by rodw
	
	
		
			
	
			
			 		
													
	
				Replied by rodw on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				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.
					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.
- rayharris
 - Offline
 - New Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 2
 - Thank you received: 0
 
			
	
						26 Feb 2023 15:29				#265420
		by rayharris
	
	
		
			
	
			
			 		
													
	
				Replied by rayharris on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				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!
					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.
- rodw
 - 
				
											 - Offline
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 11472
 - Thank you received: 3848
 
			
	
						26 Feb 2023 20:35				#265439
		by rodw
	
	
		
			
	
			
			 		
													
	
				Replied by rodw on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				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.
- langdons
 - 
				
											 - Away
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 702
 - Thank you received: 77
 
			
	
						06 Dec 2024 16:13				#316112
		by langdons
	
	
		
			
	
	
			 		
													
	
				Replied by langdons on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				Just so everybody is aware, linuxcnc-uspace does not install on Ubuntu 24.04 LTS due to dependency errors caused by irrelevant Python version issues. Python 3.13 can run Python 3.10 code just fine!			
					
		The following user(s) said Thank You: tommylight 	
			Please Log in or Create an account to join the conversation.
- langdons
 - 
				
											 - Away
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 702
 - Thank you received: 77
 
			
	
						06 Dec 2024 16:18				#316113
		by langdons
	
	
		
			
	
			
			 		
													
	
				Replied by langdons on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				Wi-Fi adapters may increase latency.
Be careful!
In general, it is best to physically remove as much unnecessary hardware as possible, then Install Ubuntu.
					Be careful!
In general, it is best to physically remove as much unnecessary hardware as possible, then Install Ubuntu.
Please Log in or Create an account to join the conversation.
- langdons
 - 
				
											 - Away
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 702
 - Thank you received: 77
 
			
	
						06 Dec 2024 16:21				#316114
		by langdons
	
	
		
			
	
			
			 		
													
	
				Replied by langdons on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				You may also install LinuxCNC using the official Debian ISO. It works great.
However, I personally hate Debian.
I believe that Debian is the least user friendly, most confusing, most non-intuitive OS ever made.
					However, I personally hate Debian.
I believe that Debian is the least user friendly, most confusing, most non-intuitive OS ever made.
Please Log in or Create an account to join the conversation.
- tommylight
 - 
				
											 - Away
 - Moderator
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 20861
 - Thank you received: 7115
 
			
	
						06 Dec 2024 16:27				#316116
		by tommylight
	
	
		
			
	
			
			 		
													
	
				Replied by tommylight on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				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.
					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.
- langdons
 - 
				
											 - Away
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 702
 - Thank you received: 77
 
			
	
						07 Dec 2024 02:23				#316146
		by langdons
	
	
		
			
	
			
			 		
													
	
				Replied by langdons on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				But that takes work.
Ubuntu is just great out of the box (okay, Ubuntu has its issues too).
Also, disabling hardware is a great way to reduce latency, but stupid Debian makes it almaost impossible to blacklist kernel modules.
Down with XFCE!
					Ubuntu is just great out of the box (okay, Ubuntu has its issues too).
Also, disabling hardware is a great way to reduce latency, but stupid Debian makes it almaost impossible to blacklist kernel modules.
Down with XFCE!
Please Log in or Create an account to join the conversation.
- langdons
 - 
				
											 - Away
 - Platinum Member
 - 
				
			 
		Less
		More
		
			
	
		- Posts: 702
 - Thank you received: 77
 
			
	
						07 Dec 2024 02:32		 -  07 Dec 2024 19:54		#316148
		by langdons
	
	
		
			
	
	
			 		
													
	
				Replied by langdons on topic Installing LinuxCNC 2.8.4 on Ubuntu 22.04 LTS with Real Time Kernel			
			
				Reply redacted.			
					
		Last edit: 07 Dec 2024 19:54  by langdons.		Reason: Reply redacted.	
			Please Log in or Create an account to join the conversation.
		Time to create page: 0.111 seconds