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

即可正常编译

相关推荐
mCell1 小时前
GitHub Actions 玩法大赏:一台远程主机的七种活法
linux·github·agent
盐焗鹌鹑蛋1 小时前
【Linux】动静态库的制作与使用
linux
艾伦_耶格宇2 小时前
【ELK】-4 logstash的搭建及操作
linux·运维·ubuntu·elk
mifengxing3 小时前
文件逻辑结构、物理结构与磁盘空闲存储空间管理
大数据·linux·运维·操作系统·计算机408
小此方5 小时前
Re:Linux系统篇(五十七)线程篇 · 十:基于环形缓冲的生产者消费者模型与信号量
linux·运维·驱动开发
fanged5 小时前
Linux的DD命令
linux·运维·服务器
张洛闻Eren6 小时前
MySQL 管理复制拓扑【MySQL第四课】
linux·运维·数据库·mysql
xiaohua10097 小时前
Linux-JVM线程查询
linux·jvm
blueSatchel8 小时前
u-boot启动过程(bootROM到SPL到u-boot)
linux·u-boot