20241128解决Ubuntu20.04安装libwxgtk3.0-dev异常的问题
2024/11/28 16:17
缘起:中科创达的高通CM6125开发板的Android10的编译环境需要。
安装异常:
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ sudo apt-get install libwxgtk3.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libwxgtk3.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libwxgtk3.0-dev' has no installation candidate
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ sudo apt install libwxgtk3.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libwxgtk3.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libwxgtk3.0-dev' has no installation candidate
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$
更新源,冰更新apt:
rootroot@rootroot-X99-Turbo:~$ cd /etc/apt/
rootroot@rootroot-X99-Turbo:/etc/apt$
rootroot@rootroot-X99-Turbo:/etc/apt$ ll
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo cp sources.list sources.list.bak1
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo chmod 777 sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo vi sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo cp sources.list.bak1 sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$
rootroot@rootroot-X99-Turbo:/etc/apt$
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main universe" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:/etc/apt$ sudo echo "" >> sources.list
rootroot@rootroot-X99-Turbo:~$ sudo apt-get update
切换/更换libwxgtk3.0-dev为libwxgtk3.0-gtk3-dev:
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$ sudo apt install libwxgtk3.0-gtk3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
chromium-codecs-ffmpeg-extra gstreamer1.0-vaapi libgstreamer-plugins-bad1.0-0 libnvidia-cfg1-535 libnvidia-common-535 libnvidia-decode-535 libnvidia-encode-535 libnvidia-extra-535 libnvidia-fbc1-535
libnvidia-gl-535 libva-wayland2 libx11-xcb1:i386 libxnvctrl0 nvidia-compute-utils-535 nvidia-kernel-source-535 nvidia-settings nvidia-utils-535 screen-resolution-extra xserver-xorg-video-nvidia-535
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libwxbase3.0-0v5 libwxbase3.0-dev libwxgtk3.0-gtk3-0v5 wx-common wx3.0-headers
Suggested packages:
wx3.0-doc gettext
The following NEW packages will be installed:
libwxbase3.0-0v5 libwxbase3.0-dev libwxgtk3.0-gtk3-0v5 libwxgtk3.0-gtk3-dev wx-common wx3.0-headers
0 upgraded, 6 newly installed, 0 to remove and 319 not upgraded.
Need to get 6,491 kB of archives.
After this operation, 29.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe amd64 libwxbase3.0-0v5 amd64 3.0.4+dfsg-15build1 [982 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe amd64 wx3.0-headers all 3.0.4+dfsg-15build1 [1,019 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe amd64 libwxbase3.0-dev amd64 3.0.4+dfsg-15build1 [29.5 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe amd64 libwxgtk3.0-gtk3-0v5 amd64 3.0.4+dfsg-15build1 [4,359 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe amd64 wx-common amd64 3.0.4+dfsg-15build1 [71.1 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal/universe amd64 libwxgtk3.0-gtk3-dev amd64 3.0.4+dfsg-15build1 [29.7 kB]
Fetched 6,491 kB in 22s (291 kB/s)
Selecting previously unselected package libwxbase3.0-0v5:amd64.
(Reading database ... 199255 files and directories currently installed.)
Preparing to unpack .../0-libwxbase3.0-0v5_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package wx3.0-headers.
Preparing to unpack .../1-wx3.0-headers_3.0.4+dfsg-15build1_all.deb ...
Unpacking wx3.0-headers (3.0.4+dfsg-15build1) ...
Selecting previously unselected package libwxbase3.0-dev:amd64.
Preparing to unpack .../2-libwxbase3.0-dev_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxbase3.0-dev:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package libwxgtk3.0-gtk3-0v5:amd64.
Preparing to unpack .../3-libwxgtk3.0-gtk3-0v5_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1) ...
Selecting previously unselected package wx-common.
Preparing to unpack .../4-wx-common_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking wx-common (3.0.4+dfsg-15build1) ...
Selecting previously unselected package libwxgtk3.0-gtk3-dev:amd64.
Preparing to unpack .../5-libwxgtk3.0-gtk3-dev_3.0.4+dfsg-15build1_amd64.deb ...
Unpacking libwxgtk3.0-gtk3-dev:amd64 (3.0.4+dfsg-15build1) ...
Setting up wx3.0-headers (3.0.4+dfsg-15build1) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.4+dfsg-15build1) ...
Setting up wx-common (3.0.4+dfsg-15build1) ...
Setting up libwxbase3.0-dev:amd64 (3.0.4+dfsg-15build1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/wx/config/base-unicode-3.0 to provide /usr/bin/wx-config (wx-config) in auto mode
Setting up libwxgtk3.0-gtk3-0v5:amd64 (3.0.4+dfsg-15build1) ...
Setting up libwxgtk3.0-gtk3-dev:amd64 (3.0.4+dfsg-15build1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/wx/config/gtk3-unicode-3.0 to provide /usr/bin/wx-config (wx-config) in auto mode
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$
rootroot@rootroot-X99-Turbo:~$
参考资料:
BING:E: Package 'libwxgtk3.0-dev' has no installation candidate
https://cloud.tencent.com/developer/ask/sof/116451866
'libwxgtk3.0-dev‘包在Ubuntu 20.04上没有安装候选程序。
EN
Ask Ubuntu用户提问于 2020-05-19 03:35:52
回答 2查看 19.4K关注 0票数 7
尝试在Ubuntu20.04(焦点)上为opencpn设置一个开发环境。
我收到以下错误消息:
代码语言:javascript
复制
dave@nuc3:~$ sudo apt-get install build-essential cmake gettext git-core gpsd gpsd-clients libgps-dev wx-common libwxgtk3.0-dev libglu1-mesa-dev libgtk2.0-dev wx3.0-headers libbz2-dev libtinyxml-dev libportaudio2 portaudio19-dev libcurl4-openssl-dev libexpat1-dev libcairo2-dev libarchive-dev liblzma-dev libexif-dev libelf-dev libsqlite3-dev
[sudo] password for dave:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Package libwxgtk3.0-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libwxgtk3.0-dev' has no installation candidate
有人能建议我如何解决丢失的libwxgtk3.0-dev库吗?
apt
package-management
广告
11.11 上云拼团GO
百款折扣商品任意拼,双人成团PK有大礼.领劵最高省12888元,还有更多云产品低至0.01元
关注问题
分享
EN
回答 2
推荐最新
Ask Ubuntu用户
发布于 2020-06-01 17:28:58
libwxgtk3.0-dev在Ubuntu20.04中被更改为libwxgtk3.0-gtk3-dev。
收藏
分享
票数 5
EN
Ask Ubuntu用户
发布于 2020-10-18 20:51:50
包从libwxgtk3.0-dev重命名为libwxgtk3.0-gtk3-dev,就像@igor在注释中指出的那样。
收藏
分享
票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:
https://askubuntu.com/questions/1241217
复制