Firefly开源社区

打印 上一主题 下一主题

[Linux] ubuntu20.04镜像chroot之后无法apt-get update

13

积分

0

威望

0

贡献

技术小白

积分
13

ubuntu20.04镜像chroot之后无法apt-get update

发表于 2024-4-15 16:53:18      浏览:124 | 回复:6        打印      只看该作者   [复制链接] 楼主
问题描述及复现步骤:
需要再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.

无法apt-get update.txt

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

回复

使用道具 举报

1014

积分

1

威望

3

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
1014
发表于 2024-4-16 08:49:31        只看该作者  沙发
可以在板子上部署好后,导出rootfs,再重新打包
https://wiki.t-firefly.com/zh_CN ... html#dao-chu-rootfs
回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2024-4-16 09:50:43        只看该作者  板凳
您好现在还有个问题就是安装完中文后终端会有乱码,软码如下:
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)]
回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2024-4-16 10:40:52        只看该作者  地板
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#
回复

使用道具 举报

1014

积分

1

威望

3

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
1014
发表于 2024-4-17 08:44:28        只看该作者  5#
1 要导出到外部存储设备,例如U盘
2 固件是否有改动过
回复

使用道具 举报

13

积分

0

威望

0

贡献

技术小白

积分
13
发表于 2024-4-17 09:07:59        只看该作者  6#
zhangzhenzhao 发表于 2024-4-17 08:44
1 要导出到外部存储设备,例如U盘
2 固件是否有改动过

就是插上u盘,想导出到u盘里面;只改了rootfs,就是多安装一部分功能,gedit,中文输入法,仅此而已
回复

使用道具 举报

1014

积分

1

威望

3

贡献

官方团队

Rank: 9Rank: 9Rank: 9

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

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

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表