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

即可正常编译

相关推荐
jsons12 小时前
autofs挂载
linux·服务器·网络
liwulin05062 小时前
【ollama】自定义结构化输出
linux·前端·数据库·ollama
时空无限3 小时前
vllm 大模型启动缓存相关环境变量 export
linux·缓存·vllm
Echo_cy_3 小时前
基于ZYNQ-7000的Ethernet驱动配置
linux·驱动开发·嵌入式硬件·fpga开发·ethernet·zynq
ShineWinsu3 小时前
对于Linux:模版方法类的解析以及socket、TcpSocket的封装
linux·c++·面试·socket·模板方法模式·封装·tcpsocket
无足鸟ICT4 小时前
【RHCA+】查看变量
linux·运维·服务器
Kina_C4 小时前
Linux DNS 服务器-从高速缓存到辅助 DNS 部署指南
linux·运维·服务器·dns
suaizai_4 小时前
TypeScript 7 正式发布!Vue 暂被 “拒之门外“ !!!
linux·运维·ubuntu
慕伏白5 小时前
【慕伏白】Linux 系统如何根据端口号关闭进程
linux·运维·服务器
letisgo56 小时前
VMware Workstation + Ubuntu 26.04 LTS 小白运维部署手册
linux·运维·ubuntu