1. Unable to locate package参考文章:https://blog.csdn.net/weixin_43124455/article/details/89667940
按照上文的步骤,已经可以在U盘构建一个Linux系统了。因此本文主要记录遇到的问题。
# 命令行输入以下命令后,重新下载 apt-get update apt-get upgrade2. U盘无法连接到虚拟机
问题 : U盘连接到虚拟机时,出现以下提示。
解决方法:将USB兼容性改为 3.1。
如果还是不能解决,尝试以下命令
sudo apt-get install exfat-utils
查看U盘分区:输入以下命令,查看最后一行
fdisk -l3. can’t open /dev/tty3: No such file or directory
在参考文章中 无盘构建根文件系统 目录下。如果按照他给的命令输入。在最后运行的时候,会出现以下错误。
can't open /dev/tty3: No such file or directory can't open /dev/tty4: No such file or directory
需要添加以下命令
mknod tty c 5 0 mknod console c 5 1 mknod null c 1 3 mknod ram b 1 0 mknod tty1 c 4 1 mknod tty2 c 4 2 mknod tty3 c 4 3 # 添加行 mknod tty4 c 4 4 # 添加行 chmod 666 tty console null chmod 666 tty1 tty2 tty3 tty4 # 修改行 chmod 600 ram4. 测试部分
测试部分是新创建一个虚拟机,U盘插在主机上,而不是虚拟机上。
其余部分跟着做就行了。出现以下画面时,回车。
当没有内容出现时,就可以输入命令了。



