ubuntu20.04镜像chroot之后无法apt-get update
需要再ubuntu20.04中安装gedit,file-roller,中文输入法等功能,尝试过用rsync的方法,吧所有安装好的板子上的rootfs用rsync的方法导出,但是导出后该文件系统无法自动挂载u盘,所以只能将原本的镜像mount出来之后chroot该文件系统,然后安装;但是再apt-get update的时候报错,报错信息如下:Err:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal InRelease
Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-updates InRelease
Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-backports InRelease
Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Err:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports focal-security InRelease
Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
Reading package lists... Done
E: Sub-process returned an error code
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal/InReleaseTemporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-updates/InReleaseTemporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-backports/InReleaseTemporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/focal-security/InReleaseTemporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Some index files failed to download. They have been ignored, or old ones used instead.
可以在板子上部署好后,导出rootfs,再重新打包
https://wiki.t-firefly.com/zh_CN/Firefly-Linux-Guide/first_use.html#dao-chu-rootfs
您好现在还有个问题就是安装完中文后终端会有乱码,软码如下:
xinput
��Virtual core pointer id=2
� ��Virtual core XTEST pointer id=4
� ��SEM USB Keyboard Consumer Control id=8
� ��E-Signal USB Gaming Mouse id=10
� ��E-Signal USB Gaming Mouse Consumer Control id=13
� ��goodix-ts id=15
��Virtual core keyboard id=3
��Virtual core XTEST keyboard id=5
��adc-keys id=6
��SEM USB Keyboard id=7
��SEM USB Keyboard System Control id=9
��E-Signal USB Gaming Mouse Keyboard id=11
��E-Signal USB Gaming Mouse System Control id=12
��rk-headset id=14
��SEM USB Keyboard Consumer Control id=16
��E-Signal USB Gaming Mouse Consumer Control id=17
zhangzhenzhao 发表于 2024-4-16 08:49
可以在板子上部署好后,导出rootfs,再重新打包
https://wiki.t-firefly.com/zh_CN/Firefly-Linux-Guide/f ...
按照4.1导出镜像的时候直接瞬间结束,而且在对应的路径下没有产生img文件,打印信息如下:
root@firefly:/home/firefly# cd /
root@firefly:/# ff
ff_export_rootfsffmpeg ffprobe
ffgo ffplay ff_rotate
root@firefly:/# ff_export_rootfs /media/firefly/3CEA-6B7D/
https://www.t-firefly.com/
tysasdgda
root@firefly:/# ff_export_rootfs /media/firefly/3CEA-6B7D/
https://www.t-firefly.com/
tysasdgda
root@firefly:/# cd /home/firefly/
root@firefly:/home/firefly# ff_export_rootfs /media/firefly/3CEA-6B7D/
https://www.t-firefly.com/
tysasdgda
root@firefly:/home/firefly# sync
root@firefly:/home/firefly# 1 要导出到外部存储设备,例如U盘
2 固件是否有改动过 zhangzhenzhao 发表于 2024-4-17 08:44
1 要导出到外部存储设备,例如U盘
2 固件是否有改动过
就是插上u盘,想导出到u盘里面;只改了rootfs,就是多安装一部分功能,gedit,中文输入法,仅此而已 lional 发表于 2024-4-17 09:07
就是插上u盘,想导出到u盘里面;只改了rootfs,就是多安装一部分功能,gedit,中文输入法,仅此而已
我们测试过是没问题,建议烧写默认固件再验证看下
页:
[1]