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

即可正常编译

相关推荐
逆小舟1 小时前
【Linux】人事档案——用户及组管理
linux·c++
青草地溪水旁1 小时前
pthread_mutex_lock函数深度解析
linux·多线程·pthread
太空的旅行者2 小时前
告别双系统——WSL2+UBUNTU在WIN上畅游LINUX
linux·运维·ubuntu
人工智能训练师4 小时前
Ubuntu22.04如何安装新版本的Node.js和npm
linux·运维·前端·人工智能·ubuntu·npm·node.js
灿烂阳光g4 小时前
domain_auto_trans,source_domain,untrusted_app
android·linux
Ronin3056 小时前
【Linux系统】日志与策略模式
linux·策略模式·日志
ZzzK,6 小时前
JAVA虚拟机(JVM)
java·linux·jvm
Aspiresky7 小时前
浅析Linux进程信号处理机制:基本原理及应用
linux·运维·信号处理
ajassi20008 小时前
linux C 语言开发 (八) 进程基础
linux·运维·服务器
..过云雨8 小时前
05.【Linux系统编程】进程(冯诺依曼体系结构、进程概念、进程状态(注意僵尸和孤儿)、进程优先级、进程切换和调度)
linux·笔记·学习