How to fix apt install libgtk-3-dev:i386 Depends ...但不会安装问题

问题描述 投票:0回答:0

我最近在 github ubuntu-latest(ubuntu 22.04) 上运行了以下命令,但出现了一些错误。

      - name: 'Setup for linux'
        if: matrix.os == 'ubuntu-latest'
        run: |
          # https://ubuntu.com/blog/statement-on-32-bit-i386-packages-for-ubuntu-19-10-and-20-04-lts
          # https://askubuntu.com/questions/1252062/how-to-install-libncurses-so-5-in-ubuntu-20-04
          # https://askubuntu.com/questions/522372/installing-32-bit-libraries-on-ubuntu-14-04-lts-64-bit
          # sudo add-apt-repository universe
          sudo dpkg --add-architecture i386 
          sudo apt update
          # sudo apt upgrade
          # install both 32-bit and 64-bit prerequisites of tauri
          # libayatana-appindicator3-dev is the successor of libappindicator3-dev and 64-bit only
          # https://tauri.app/v1/guides/getting-started/prerequisites/#setting-up-linux
          # https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md
          echo install tools for 32-bit support ...
          sudo dpkg --add-architecture i386 
          sudo apt update
          # sudo apt upgrade
          sudo apt install -y --allow-downgrades \
            gcc-multilib \
            g++-multilib
          echo install 32-bit dependences ...
          sudo apt update
          # sudo apt upgrade
          sudo apt install -y --allow-downgrades \
            libwebkit2gtk-4.0-dev:i386 \
            libssl-dev:i386 \
            libgtk-3-dev:i386 \
            librsvg2-dev:i386 || echo "install 32-bit dependences failed! Check the logs for details."
          echo install dependences ...
          sudo apt install -y --allow-downgrades \
            libwebkit2gtk-4.0-dev \
            libssl-dev \
            libgtk-3-dev \
            librsvg2-dev \
            libayatana-appindicator3-dev

完整的错误日志。

Run # https://ubuntu.com/blog/statement-on-32-bit-i386-packages-for-ubuntu-19-10-and-20-04-lts
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 https://packages.microsoft.com/ubuntu/22.04/prod jammy InRelease [3611 B]
Hit:2 http://azure.archive.ubuntu.com/ubuntu jammy InRelease
Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Get:4 http://azure.archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
Get:5 http://azure.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:6 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages [64.5 kB]
Get:7 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main arm64 Packages [13.7 kB]
Get:8 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main armhf Packages [7155 B]
Get:9 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main all Packages [904 B]
Get:10 http://azure.archive.ubuntu.com/ubuntu jammy/main i386 Packages [1040 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu jammy/restricted i386 Packages [30.4 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu jammy/universe i386 Packages [7474 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu jammy/multiverse i386 Packages [112 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [395 kB]
Get:15 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [604 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [170 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 c-n-f Metadata [14.4 kB]
Get:18 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [271 kB]
Get:19 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [28.3 kB]
Get:20 http://azure.archive.ubuntu.com/ubuntu jammy-updates/restricted Translation-en [41.3 kB]
Get:21 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [898 kB]
Get:22 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [609 kB]
Get:23 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [184 kB]
Get:24 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 c-n-f Metadata [18.8 kB]
Get:25 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [35.3 kB]
Get:26 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse i386 Packages [3884 B]
Get:27 http://azure.archive.ubuntu.com/ubuntu jammy-updates/multiverse Translation-en [8452 B]
Get:28 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy InRelease [23.8 kB]
Get:29 http://azure.archive.ubuntu.com/ubuntu jammy-backports/main i386 Packages [33.7 kB]
Get:30 http://azure.archive.ubuntu.com/ubuntu jammy-backports/universe i386 Packages [12.7 kB]
Get:31 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [388 kB]
Get:32 http://azure.archive.ubuntu.com/ubuntu jammy-security/main i386 Packages [215 kB]
Get:33 http://azure.archive.ubuntu.com/ubuntu jammy-security/main Translation-en [111 kB]
Get:34 http://azure.archive.ubuntu.com/ubuntu jammy-security/main amd64 c-n-f Metadata [9744 B]
Get:35 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [28.0 kB]
Get:36 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [270 kB]
Get:37 http://azure.archive.ubuntu.com/ubuntu jammy-security/restricted Translation-en [41.0 kB]
Get:38 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe i386 Packages [526 kB]
Get:39 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [709 kB]
Get:40 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe Translation-en [123 kB]
Get:41 http://azure.archive.ubuntu.com/ubuntu jammy-security/universe amd64 c-n-f Metadata [14.4 kB]
Get:42 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [30.2 kB]
Get:43 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [1028 B]
Get:44 http://azure.archive.ubuntu.com/ubuntu jammy-security/multiverse Translation-en [5828 B]
Get:45 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy/main amd64 Packages [15.7 kB]
Get:46 https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu jammy/main i386 Packages [2124 B]
Setting up libopengl-dev:amd64 (1.4.0-1) ...
Setting up libsoup-gnome2.4-1:amd64 (2.74.2-3) ...
Setting up libxi-dev:amd64 (2:1.8-1build1) ...
Setting up libsamplerate0:amd64 (0.2.2-1build1) ...
Setting up libayatana-indicator3-7:amd64 (0.9.1-1) ...
Setting up libevdev2:amd64 (1.12.1+dfsg-1) ...
Setting up libgl-dev:amd64 (1.4.0-1) ...
Setting up libmp3lame0:amd64 (3.100-3build2) ...
Setting up libatk1.0-dev:amd64 (2.36.0-3build1) ...
Setting up libvorbisenc2:amd64 (1.3.7-1build2) ...
Setting up libaa1:amd64 (1.4p5-50build1) ...
Setting up libiec61883-0:amd64 (1.2.0-4build3) ...
Setting up libxft-dev:amd64 (2.3.4-1) ...
Setting up libxtst-dev:amd64 (2:1.2.3-1build4) ...
Setting up libxdamage-dev:amd64 (1:1.1.5-2build2) ...
Setting up libavc1394-0:amd64 (0.5.4-5build2) ...
Setting up libatspi2.0-dev:amd64 (2.44.0-3) ...
Setting up libharfbuzz-dev:amd64 (2.7.4-1ubuntu3.1) ...
Setting up libegl-dev:amd64 (1.4.0-1) ...
Setting up libdbus-glib-1-dev:amd64 (0.112-2build1) ...
Setting up libxcomposite-dev:amd64 (1:0.4.5-1build2) ...
Setting up libxcursor-dev:amd64 (1:1.2.0-2build4) ...
Setting up libmanette-0.2-0:amd64 (0.2.6-3build1) ...
Setting up libepoxy-dev:amd64 (1.5.10-1) ...
Setting up gir1.2-gtk-3.0:amd64 (3.24.33-1ubuntu2) ...
Setting up libgstreamer-plugins-base1.0-0:amd64 (1.20.1-1) ...
Setting up libatk-bridge2.0-dev:amd64 (2.38.0-3) ...
Setting up libwayland-dev:amd64 (1.20.0-1ubuntu0.1) ...
Setting up gir1.2-soup-2.4:amd64 (2.74.2-3) ...
Setting up libv4l-0:amd64 (1.22.1-2build1) ...
Setting up libgstreamer-plugins-good1.0-0:amd64 (1.20.3-0ubuntu1) ...
Setting up libgstreamer-gl1.0-0:amd64 (1.20.1-1) ...
Setting up gstreamer1.0-plugins-base:amd64 (1.20.1-1) ...
Setting up libayatana-appindicator3-1 (0.5.90-7ubuntu2) ...
Setting up libshout3:amd64 (2.4.5-1build3) ...
Setting up libdbusmenu-glib-dev:amd64 (16.04.1+18.10.20180917-0ubuntu8) ...
Setting up libthai-dev:amd64 (0.1.29-1build1) ...
Setting up libjack-jackd2-0:amd64 (1.9.20~dfsg-1) ...
Setting up libsndfile1:amd64 (1.0.31-2build1) ...
Setting up libgles-dev:amd64 (1.4.0-1) ...
Setting up gir1.2-ayatanaappindicator3-0.1 (0.5.90-7ubuntu2) ...
Setting up libpulse0:amd64 (1:15.99.1+dfsg1-1ubuntu2.1) ...
Setting up gstreamer1.0-plugins-good:amd64 (1.20.3-0ubuntu1) ...
Setting up libsoup2.4-dev:amd64 (2.74.2-3) ...
Setting up libglvnd-dev:amd64 (1.4.0-1) ...
Setting up libpango1.0-dev:amd64 (1.50.6+ds-2ubuntu1) ...
Setting up libwebkit2gtk-4.0-37:amd64 (2.38.6-0ubuntu0.22.04.1) ...
Setting up libegl1-mesa-dev:amd64 (22.2.5-0ubuntu0.1~22.04.1) ...
Setting up libgtk-3-dev:amd64 (3.24.33-1ubuntu2) ...
Setting up gir1.2-webkit2-4.0:amd64 (2.38.6-0ubuntu0.22.04.1) ...
Setting up libayatana-ido3-dev (0.9.1-1) ...
Setting up libwebkit2gtk-4.0-dev:amd64 (2.38.6-0ubuntu0.22.04.1) ...
Setting up libayatana-indicator3-dev (0.9.1-1) ...
Setting up libayatana-appindicator3-dev (0.5.90-7ubuntu2) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 5.15.0-1037-azure
NEEDRESTART-KEXP: 5.15.0-1037-azure
NEEDRESTART-KSTA: 1
ok

我在 apt 命令中添加了一些调试信息,但我仍然找不到安装失败的根本问题以及解决方法。

ubuntu gtk3 apt tauri
© www.soinside.com 2019 - 2024. All rights reserved.