Firefly开源社区

打印 上一主题 下一主题

[Linux] 更新镜像源安装软件 报 Unable to locate package libdouble

18

积分

0

威望

0

贡献

技术小白

积分
18

更新镜像源安装软件 报 Unable to locate package libdouble

发表于 2022-2-22 14:40:18      浏览:6435 | 回复:6        打印      只看该作者   [复制链接] 楼主
本帖最后由 sixi 于 2022-2-22 14:46 编辑

firefly@firefly:~$ sudo apt install -y \
>       libmtdev1 \
>       libinput10 \
>       libxkbcommon0 \
>       libdouble-conversion1 \
>       libicu60 \
>       libharfbuzz0b \
>       libwebpdemux2 \
>       libwebpmux3
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libdouble-conversion1
E: Unable to locate package libwebpdemux2


更新了镜像源 然后安装qt环境 还是报这个错  这个是在RK3399上配置的
回复

使用道具 举报

789

积分

2

威望

4

贡献

技术大神

Rank: 3Rank: 3

积分
789
发表于 2022-2-22 14:46:25        只看该作者  沙发
哪个版本的系统? 有执行apt update吗?
回复

使用道具 举报

18

积分

0

威望

0

贡献

技术小白

积分
18
发表于 2022-2-22 14:51:29        只看该作者  板凳
penguin 发表于 2022-2-22 14:46
哪个版本的系统? 有执行apt update吗?

ubuntu 18.04.6 执行了 后面有几行报错
然后执行 sudo apt-get upgrade 显示 零个更新 啥的
回复

使用道具 举报

18

积分

0

威望

0

贡献

技术小白

积分
18
发表于 2022-2-22 14:54:50        只看该作者  地板

  404  Not Found [IP: 240e:95c:3004:d:3::3f3 80]
Err:177 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/main arm64 Packages
  404  Not Found [IP: 2001:da8:d800:95::110 443]
Ign:178 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/restricted arm64 Packages
Ign:179 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/universe arm64 Packages
Ign:124 http://mirrors.aliyun.com/ubuntu bionic-backports/universe arm64 Packages
Fetched 1472 kB in 9s (163 kB/s)
Reading package lists... Done
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic/InRelease  Could not connect to mirrors.163.com:80 (60.191.80.11). - connect (113: No route to host)
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-security/InRelease  Unable to connect to mirrors.163.com:http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-updates/InRelease  Unable to connect to mirrors.163.com:http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-proposed/InRelease  Unable to connect to mirrors.163.com:http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-backports/InRelease  Unable to connect to mirrors.163.com:http:
E: Failed to fetch http://mirrors.aliyun.com/ubuntu ... nary-arm64/Packages  404  Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu ... nary-arm64/Packages  404  Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu ... nary-arm64/Packages  404  Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch https://mirrors.tuna.tsinghua.ed ... nary-arm64/Packages  404  Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubun ... nary-arm64/Packages  404  Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.tuna.tsinghua.ed ... nary-arm64/Packages  404  Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu ... nary-arm64/Packages  404  Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch https://mirrors.tuna.tsinghua.ed ... nary-arm64/Packages  404  Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu ... nary-arm64/Packages  404  Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch https://mirrors.tuna.tsinghua.ed ... nary-arm64/Packages  404  Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch https://mirrors.tuna.tsinghua.ed ... nary-arm64/Packages  404  Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubun ... nary-arm64/Packages  404  Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubun ... nary-arm64/Packages  404  Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubun ... nary-arm64/Packages  404  Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubun ... nary-arm64/Packages  404  Not Found [IP: 2001:da8:d800:95::110 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
firefly@firefly:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
回复

使用道具 举报

789

积分

2

威望

4

贡献

技术大神

Rank: 3Rank: 3

积分
789
发表于 2022-2-22 14:58:40        只看该作者  5#
自己更新了源?  网络环境问题, 多执行几次apt update .
回复

使用道具 举报

18

积分

0

威望

0

贡献

技术小白

积分
18
发表于 2022-2-22 15:10:17        只看该作者  6#
执行了无数次了 结果一样 是不是源的问题
还有个问题就是 我要编译qt 是要把下面的全部操作一遍吗
还是 只用在板子上操作完了 把项目复制到板子上 然后通过终端进入项目目录 输入 qmake&&make 编译就可以了吗
# Qt 5.12.2 arm64 ubuntu18.04 Cross Compile

Firefly Qt5.12.2 ,Work Environment

*   Host(x86 PC)  : ubuntu 18.04 x86_64

*   Target(RK3399, RK3328, PX30): ubuntu 18.04 arm64

## Host Deployment

```shell
$ apt install -y crossbuild-essential-arm64
$ cd firfly_arm64_qt5.12.2_18.04
$ mkdir -p /opt
$ cp -rfd host/opt/*  /opt/
$ cp host/host_qtEnv.sh  /etc/profile.d/
reboot
```



## Target Deployment

```shell
$ cd firfly_arm64_qt5.12.2_18.04
$ mkdir -p /opt
$ cp -rfd host/opt/firefly_qt5.12.2_arm64_18.04/ext  /opt/firefly_qt5.12.2
$ cp target/target_qtEnv.sh /etc/profile.d/
$ cp target/qt.conf /etc/ld.so.conf.d
$ ldconfig
$ reboot

$ [ -e /usr/lib/aarch64-linux-gnu/libGLESv2.so.2.0.0 ] || apt install -y libgles2

# Install base library
$ apt install -y \
      libmtdev1 \
      libinput10 \
      libxkbcommon0 \
      libdouble-conversion1 \
      libicu60 \
      libharfbuzz0b \
      libwebpdemux2 \
      libwebpmux3

#Qt QPA Backends
# linuxfb
$ export QT_QPA_PLATFORM=LINUXFB
$ export QT_QPA_FB_DRM=1
$ demo/analogclock

#eglfs
$ export QT_QPA_PLATFORM=EGLFS
$ export QT_QPA_EGLFS_INTEGRATION=EGLFS_KMS #in minimal ubuntu, use eglfs_kms.
$ export QT_QPA_EGLFS_KMS_ATOMIC=1  #use drm atomic api or legacy api(two different)
$ export QT_QPA_EGLFS_HIDECURSOR=1  #hide cursor
$ demo/openglwindow

#xcb (Ubuntu Desktop)
$ apt install -y \
      libxcb-icccm4 \
      libxcb-image0 \
      libxcb-shm0 \
      libxcb-keysyms1 \
      libxcb-render0 \
      libxcb-render-util0  \
      libxcb-shape0 \
      libxcb-sync1 \
      libxcb-xfixes0 \
      libxcb-xinerama0 \
      libxcb-xkb1 \
      libxcb-randr0 \
      libsm6 \
      libice6 \
      libxkbcommon-x11-0

$ export QT_QPA_PLATFORM=xcb
$ export QT_QPA_EGLFS_INTEGRATION=XCB_EGL   

```



## Cross Compile on Host

```shell
$ cd example/
$ qmake
$ make
```


回复

使用道具 举报

18

积分

0

威望

0

贡献

技术小白

积分
18
发表于 2022-2-22 15:42:03        只看该作者  7#
penguin 发表于 2022-2-22 14:58
自己更新了源?  网络环境问题, 多执行几次apt update .

我电脑上安装了一个qt 5.14  怎么用官网提供的5.12 编译呢  我使用 qmake
回复

使用道具 举报

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

本版积分规则

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