树莓派4安装linuxCNC

硬件说明

树莓派4B,2GB版本

系统要求

1、Debian Buster 32位

2、源可更改为国内的镜像源

3、装最新版的linuxcnc,目前的版本为LINUXCNC - 2.8.4

步骤

1、需要添加LinuxCNC存储库的APT密钥

sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 3cb9fd148f374fef 或

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 3cb9fd148f374fef  本人用的是这个

2、添加存储库

echo deb http://linuxcnc.org/ buster base 2.8-rtpreempt | sudo tee -a /etc/apt/sources.list.d/linuxcnc.list

sudo apt-get update

3、安装实时内核

sudo apt-get install linux-image-4.19.71-rt24-v7l+

此处很有可能就安装不上,也是这篇文章的重点。

可能的报错为

dpkg: error processing archive /var/cache/apt/archives/linux-image-4.19.71-rt24-v7l+_4.19.71-rt24-v7l+-4_armhf.deb (--unpack):
 trying to overwrite '/boot/bcm2708-rpi-b-plus.dtb', which is also in package raspberrypi-kernel 1:1.20230509~buster-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.19.71-rt24-v7l+_4.19.71-rt24-v7l+-4_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

处理方案

sudo dpkg -i --force-overwrite /var/cache/apt/archives/linux-image-4.19.71-rt24-v7l+_4.19.71-rt24-v7l+-4_armhf.deb

4、安装主程序

sudo apt-get install linuxcnc-uspace

你可能感兴趣的:(linux,运维,服务器)