rk3399 - ubuntu 18.04的img有问题, 导致apt-get无法正常安装opengl
rk3399的板子,采用ubuntu 18.04,GPT 20190403的版本。apt-get 安装更新出问题。
opengl 安装不了
执行的命令:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install libgtk-3-dev
sudo apt-get install libglfw3-dev
和系统缺省的img安装的包有冲突。
请问如何解决?
----------------------------
cattlerun@firefly:~$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
Hit:1 http://wiki.t-firefly.com/firefly-rk3399-repo bionic InRelease
Hit:2 http://archive.canonical.com/ubuntu bionic InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libcogl20 libdrm-amdgpu1 libdrm-dev libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libdrm-tegra0 libdrm2 libgl1-mesa-dri
libgtk-3-0 libgtk-3-bin libsdl2-2.0-0 libwayland-egl1-mesa mesa-va-drivers mesa-vdpau-drivers xserver-common
xserver-xorg-core
The following packages will be upgraded:
mesa-common-dev
1 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
168 not fully installed or removed.
Need to get 0 B/559 kB of archives.
After this operation, 174 kB of additional disk space will be used.
Do you want to continue? y
(Reading database ... 102962 files and directories currently installed.)
Preparing to unpack .../mesa-common-dev_18.2.8-0ubuntu0~18.04.2_arm64.deb ...
Unpacking mesa-common-dev:arm64 (18.2.8-0ubuntu0~18.04.2) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_18.2.8-0ubuntu0~18.04.2_arm64.deb (--unpack):
trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package libmali-rk-dev:arm64 1.6-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mesa-common-dev_18.2.8-0ubuntu0~18.04.2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我用Qt的程序,每次都会弹出openGL的库缺失或者error;我也无法安装这个库;
1、可以尝试dpkg强制安装,但是有没有问题不是很清楚(其实我强制覆盖了,目前Qt报的另外一个库warming,我也懒得管了,反正可以用);
2、尝试用aptitude,看看它有没有兼容的策略;(反正我是试了,退了好几个软件的版本也无能为力);
3、等官方消息吧; 111 我也碰到了同样的问题,希望官方能够尽快出新的固件修复。 请问能装Ubuntu16.04么,如果能装是哪个版本? lsp 发表于 2019-6-22 08:01
请问能装Ubuntu16.04么,如果能装是哪个版本?
我装了 16.04 但是一样有类似报错,没法更新升级软件包 我也是, sudo apt upgrade 就出错了 momandai 发表于 2019-7-16 18:48
我也是, sudo apt upgrade 就出错了
我也遇到了,具体表现为,upgrade时报错
The following packages have unmet dependencies:
libegl1 : Depends: libglvnd0 (= 1.0.0-2ubuntu2.2) but 1.0.0-2ubuntu2.3 is installed
libgles2 : Depends: libglvnd0 (= 1.0.0-2ubuntu2.2) but 1.0.0-2ubuntu2.3 is installed
我发现时 rockchip-mali-midgard14 这个包造成的
解决办法:
1、重刷系统
2、先卸载包 sudo apt-get removerockchip-mali-midgard14
3、update、upgrade即可 dolbyyu 发表于 2019-7-24 16:47
我也遇到了,具体表现为,upgrade时报错
The following packages have unmet dependencies:
libegl1 : ...
The following package was automatically installed and is no longer required:
libllvm6.0
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
mesa-common-dev
The following packages will be upgraded:
mesa-common-dev
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
30 not fully installed or removed.
Need to get 0 B/598 kB of archives.
After this operation, 398 kB of additional disk space will be used.
Do you want to continue? y
(Reading database ... 103537 files and directories currently installed.)
Preparing to unpack .../mesa-common-dev_19.0.2-1ubuntu1.1~18.04.2_arm64.deb ...
Unpacking mesa-common-dev:arm64 (19.0.2-1ubuntu1.1~18.04.2) over (18.0.5-0ubuntu0~18.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/mesa-common-dev_19.0.2-1ubuntu1.1~18.04.2_arm64.deb (--unpack):
trying to overwrite '/usr/include/KHR/khrplatform.h', which is also in package libmali-rk-dev:arm64 1.6-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/mesa-common-dev_19.0.2-1ubuntu1.1~18.04.2_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
出现了这个问题,我用的是官方的ubuntu18.04 20190403 的镜像
官方发布的ubuntu固件都支持opengl,具体请看:
http://wiki.t-firefly.com/zh_CN/Firefly-RK3399/ubuntu_support.html#opengl-es
页:
[1]
2