Firefly开源社区

标题: ubuntu20.04镜像chroot之后无法apt-get update [打印本页]

作者: lional    时间: 2024-4-15 16:53
标题: 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 ... sts/focal/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu ... l-updates/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu ... backports/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Failed to fetch http://mirrors.tuna.tsinghua.edu ... -security/InRelease  Temporary failure resolving 'mirrors.tuna.tsinghua.edu.cn'
W: Some index files failed to download. They have been ignored, or old ones used instead.

tchip_askquestions

无法apt-get update.txt

1.37 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1


作者: zhangzhenzhao    时间: 2024-4-16 08:49
可以在板子上部署好后,导出rootfs,再重新打包
https://wiki.t-firefly.com/zh_CN ... html#dao-chu-rootfs

作者: lional    时间: 2024-4-16 09:50
您好现在还有个问题就是安装完中文后终端会有乱码,软码如下:
xinput
��Virtual core pointer                            id=2        [master pointer  (3)]
�   ��Virtual core XTEST pointer                      id=4        [slave  pointer  (2)]
�   ��SEM USB Keyboard Consumer Control               id=8        [slave  pointer  (2)]
�   ��E-Signal USB Gaming Mouse                       id=10        [slave  pointer  (2)]
�   ��E-Signal USB Gaming Mouse Consumer Control        id=13        [slave  pointer  (2)]
�   ��goodix-ts                                       id=15        [slave  pointer  (2)]
��Virtual core keyboard                           id=3        [master keyboard (2)]
    ��Virtual core XTEST keyboard                     id=5        [slave  keyboard (3)]
    ��adc-keys                                        id=6        [slave  keyboard (3)]
    ��SEM USB Keyboard                                id=7        [slave  keyboard (3)]
    ��SEM USB Keyboard System Control                 id=9        [slave  keyboard (3)]
    ��E-Signal USB Gaming Mouse Keyboard              id=11        [slave  keyboard (3)]
    ��E-Signal USB Gaming Mouse System Control        id=12        [slave  keyboard (3)]
    ��rk-headset                                      id=14        [slave  keyboard (3)]
    ��SEM USB Keyboard Consumer Control               id=16        [slave  keyboard (3)]
    ��E-Signal USB Gaming Mouse Consumer Control        id=17        [slave  keyboard (3)]

作者: lional    时间: 2024-4-16 10:40
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_rootfs  ffmpeg            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#
作者: zhangzhenzhao    时间: 2024-4-17 08:44
1 要导出到外部存储设备,例如U盘
2 固件是否有改动过
作者: lional    时间: 2024-4-17 09:07
zhangzhenzhao 发表于 2024-4-17 08:44
1 要导出到外部存储设备,例如U盘
2 固件是否有改动过

就是插上u盘,想导出到u盘里面;只改了rootfs,就是多安装一部分功能,gedit,中文输入法,仅此而已
作者: zhangzhenzhao    时间: 2024-4-17 17:01
lional 发表于 2024-4-17 09:07
就是插上u盘,想导出到u盘里面;只改了rootfs,就是多安装一部分功能,gedit,中文输入法,仅此而已

我们测试过是没问题,建议烧写默认固件再验证看下




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1