更新镜像源安装软件 报 Unable to locate package libdouble
本帖最后由 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上配置的
哪个版本的系统? 有执行apt update吗? penguin 发表于 2022-2-22 14:46
哪个版本的系统? 有执行apt update吗?
ubuntu 18.04.6 执行了 后面有几行报错
然后执行 sudo apt-get upgrade 显示 零个更新 啥的
404Not Found
Err:177 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/main arm64 Packages
404Not Found
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/InReleaseCould 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/InReleaseUnable to connect to mirrors.163.com:http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-updates/InReleaseUnable to connect to mirrors.163.com:http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-proposed/InReleaseUnable to connect to mirrors.163.com:http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-backports/InReleaseUnable to connect to mirrors.163.com:http:
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic/main/binary-arm64/Packages404Not Found
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-security/main/binary-arm64/Packages404Not Found
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-updates/main/binary-arm64/Packages404Not Found
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-proposed/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-backports/main/binary-arm64/Packages404Not Found
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-security/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-proposed/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-updates/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-backports/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-security/main/binary-arm64/Packages404Not Found
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-proposed/main/binary-arm64/Packages404Not Found
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.
自己更新了源?网络环境问题, 多执行几次apt update . 执行了无数次了 结果一样 是不是源的问题
还有个问题就是 我要编译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
```
penguin 发表于 2022-2-22 14:58
自己更新了源?网络环境问题, 多执行几次apt update .
我电脑上安装了一个qt 5.14怎么用官网提供的5.12 编译呢我使用 qmake
页:
[1]