NJU PA0

NJU PA0

使用教程提供的源再进行sudo apt install ... 可能会出现 Unmet dependencies 此类报错

可以安装 aptitude

shell 复制代码
sudo apt install aptitude
sudo aptitude install <package>

然后它会提示你,选 n 进行降级。再选 Y 确认

或者

将 /etc/apt/sources.list 下的源改为

复制代码
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

再输入

shell 复制代码
sudo apt-get update
sudo apt-get upgrade

对于 git,克隆 ssh 仓库

可能会遇到 ssh: connect to host github.com port 22: Connection refused 这样的报错

解决方案是在 ~/.ssh/config

如果没有则 touch ~/.ssh/config

vim ~/.ssh/config

在其中添加这几行:

shell 复制代码
Host github.com
  Hostname ssh.github.com
  Port 443

然后再进行 git clone

当我们运行 make menuconfig

出现以下报错

我们需要安装这些缺少项

shell 复制代码
sudo apt install bison

再尝试输入 make

同理,安装

shell 复制代码
sudo apt install flex

即可正常编译

相关推荐
.YYY6 小时前
Linux--如何安装rockyLinux9虚拟机
linux
kdxiaojie6 小时前
U-Boot分析【学习笔记】(12)
linux·笔记·学习
Bert.Cai7 小时前
Linux let命令详解
linux·运维·服务器
枕星而眠7 小时前
Linux 线程:原理、属性、实战与面试避坑
linux·运维·c语言·面试
晚风予卿云月7 小时前
【Linux】环境变量概念、作用、配置与修改详解
linux·运维·服务器·环境变量
r-t-H7 小时前
从零开始搭建CDH-第十二章
linux·hive·spark·centos·hbase
~黄夫人~7 小时前
零基础速通|Windows&Linux 常用命令行对照表大全
linux·运维·windows·笔记·备忘录·整理表格
benjiangliu7 小时前
LINUX系统-17-EXT系列文件系统(二)
linux·运维·服务器
杨云龙UP7 小时前
Linux 根分区被日志吃满?一次 58G Broker 日志清理实战_2026-05-20
linux·运维·服务器·数据库·hdfs·apache
叶半欲缺8 小时前
Linux通过lvm扩容根目录
linux·运维·服务器