/*-----------------------------*/
📅 2026-01-26
🔄 2026-01-26
⌚ Reading time: 2 min
📂
orangepi 5 plus ,RK3588
orangepi 3 LTS,全志H6
安装 ubuntu server 22.04 jammy
改一个字符的密码。Ubuntu Server 默认启用了 PAM 密码强度策略
# 编辑 PAM 配置
sudo vi /etc/pam.d/common-password
其中一行修改为
# here are the per-package modules (the "Primary" block)
password [success=1 default=ignore] pam_unix.so yescrypt minlen=1
使用 passwd 修改密码
新板可能会有时间问题,导致 apt update 失败,可以先设置时间。
22.04 aarch64 的软件源 /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse
# deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ jammy-backports main restricted universe multiverse
ubuntu 24.04 aarch64 刚装好默认的软件源 /etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: http://ports.ubuntu.com/ubuntu-ports
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
新版的源不管是 22.04 还是 24.04 都用下面这个就行。/etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: https://mirrors.ustc.edu.cn/ubuntu-ports/
Suites: noble noble-updates noble-backports noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
apt update 报 TLS / 证书错误(时间问题)
新板子有些没 RTC,有些是时间设置有问题,放久了的板子基本都会出这个问题。解决方法
# 先检查时间
date
# 时区设置
sudo timedatectl set-timezone Asia/Shanghai
sudo date -s "2026-01-27 12:30:00"
# 启用 systemd-timesyncd
sudo timedatectl set-ntp true
timedatectl
sudo apt install systemd-timesyncd
sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd
设置时间自动同步,指定同步时间的服务器
sudo vim /etc/systemd/timesyncd.conf
[Time]
NTP=ntp.aliyun.com ntp.ntsc.ac.cn time.tencent.com
FallbackNTP=pool.ntp.org
重启
sudo systemctl restart systemd-timesyncd
还有格式的问题。
sudo vim /etc/default/locale
编辑内容为
LANG=C.UTF-8
LC_ALL=
orangepi 3 LTS,DHCP 连不上的原因。
ubuntu 有两个网络管理器
systemctl is-active systemd-networkd
systemctl is-active NetworkManager
两个都开着就会出问题。
# 关 NetworkManager
sudo systemctl stop NetworkManager
# 不随开机启动
sudo systemctl disable NetworkManager
# 即使被其他工具拉起也不允许,不让 orangepi-config 管
sudo systemctl mask NetworkManager
/etc/netplan
新建一个配置
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
文件权限
chmod 600 /etc/netplan/*.yaml
DNS 的问题。使用 systemd 来控制
rm /etc/resolv.conf
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo hostnamectl set-hostname edge01-pi5plus
改用户名,可选
sudo apt install gcc-aarch64-linux-gnu
sudo apt install g++-aarch64-linux-gnu
sudo apt install binutils-aarch64-linux-gnu
https://developer.nvidia.com/sdk-manager
sdk manager 2.4.0
sudo dpkg -i sdkmanager_2.4.0-13235_amd64.deb