博主使用的 Deepin Linux
版本是 Deepin 20.8
root@sa ~
No LSB modules are available.
Distributor ID: Deepin
Description: Deepin 20.8
Release: 20.8
Codename: apricot
root@sa ~
root@sa ~
Deepin GNU/Linux 20.8 \n \l
root@sa ~
root@sa ~
Static hostname: sa
Icon name: computer-laptop
Chassis: laptop 💻
Machine ID: 3a****y5
Boot ID: 4b****z6
Operating System: Deepin 20.8
Kernel: Linux 5.15.77-amd64-desktop
Architecture: x86-64
Hardware Vendor: Lenovo
Hardware Model: ThinkPad T470
root@sa ~
博主想在 Deepin Linux 上直接安装 Pritunl 客户端(pritunl-client-electron)
预先准备 环境
root@sa ~
root@sa ~
deb http://repo.pritunl.com/stable/apt focal main
root@sa ~
root@sa ~
Get:1 http://repo.pritunl.com/stable/apt focal InRelease [2,419 B]
Get:2 http://repo.pritunl.com/stable/apt focal/main amd64 Packages [2,276 B]
Fetched 4,695 B in 3s (1,770 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@sa ~
root@sa ~
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version (2.2.12.2-1+dde).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@sa ~
root@sa ~
gpg: key 7AE645C0CF8E292A: "Pritunl <contact@pritunl.com>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
root@sa ~
root@sa ~
-----BEGIN PGP PUBLIC KEY BLOCK-----
...
-----END PGP PUBLIC KEY BLOCK-----
root@sa ~
然后到下面一步出错了
Deepin Linux 安装 Pritunl 客户端(pritunl-client-electron)遇到报错
root@sa ~
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
pritunl-client-electron : Depends: libgconf-2-4 but it is not installable
E: Unable to correct problems, you have held broken packages.
root@sa ~
所以,下边开始解决问题:
1、先下载依赖离线包
-
libgconf-2-4_3.2.6-4ubuntu1_amd64.deb
http://archive.ubuntu.com/ubuntu/pool/universe/g/gconf/libgconf-2-4_3.2.6-4ubuntu1_amd64.deb
-
gconf2-common_3.2.6-4ubuntu1_all.deb
http://archive.ubuntu.com/ubuntu/pool/universe/g/gconf/gconf2-common_3.2.6-4ubuntu1_all.deb
root@sa /opt/software
root@sa /opt/software
root@sa /opt/software/libgconf
root@sa /opt/software/libgconf
--2023-03-27 15:33:11-- http://archive.ubuntu.com/ubuntu/pool/universe/g/gconf/libgconf-2-4_3.2.6-4ubuntu1_amd64.deb
Resolving archive.ubuntu.com (archive.ubuntu.com)... 2620:2d:4000:1::16, 2620:2d:4000:1::19, 2001:67c:1562::15, ...
Connecting to archive.ubuntu.com (archive.ubuntu.com)|2620:2d:4000:1::16|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 84824 (83K) [application/x-debian-package]
Saving to: ‘libgconf-2-4_3.2.6-4ubuntu1_amd64.deb’
libgconf-2-4_3.2.6- 100%[===================>] 82.84K 73.6KB/s in 1.1s
2023-03-27 15:33:13 (73.6 KB/s) - ‘libgconf-2-4_3.2.6-4ubuntu1_amd64.deb’ saved [84824/84824]
root@sa /opt/software/libgconf
root@sa /opt/software/libgconf
total 84
-rw-r--r-- 1 root root 84824 Jun 13 2017 libgconf-2-4_3.2.6-4ubuntu1_amd64.deb
root@sa /opt/software/libgconf
root@sa /opt/software/libgconf
--2023-03-27 15:33:28-- http://archive.ubuntu.com/ubuntu/pool/universe/g/gconf/gconf2-common_3.2.6-4ubuntu1_all.deb
Resolving archive.ubuntu.com (archive.ubuntu.com)... 2620:2d:4000:1::19, 2620:2d:4000:1::16, 2001:67c:1562::18, ...
Connecting to archive.ubuntu.com (archive.ubuntu.com)|2620:2d:4000:1::19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 699610 (683K) [application/x-debian-package]
Saving to: ‘gconf2-common_3.2.6-4ubuntu1_all.deb’
gconf2-common_3.2.6 100%[===================>] 683.21K 257KB/s in 2.7s
2023-03-27 15:33:32 (257 KB/s) - ‘gconf2-common_3.2.6-4ubuntu1_all.deb’ saved [699610/699610]
root@sa /opt/software/libgconf
root@sa /opt/software/libgconf
total 768
-rw-r--r-- 1 root root 699610 Jun 13 2017 gconf2-common_3.2.6-4ubuntu1_all.deb
-rw-r--r-- 1 root root 84824 Jun 13 2017 libgconf-2-4_3.2.6-4ubuntu1_amd64.deb
root@sa /opt/software/libgconf
2、安装依赖离线包
apt install ./gconf2-common_3.2.6-4ubuntu1_all.deb
apt install ./libgconf-2-4_3.2.6-4ubuntu1_amd64.deb
root@sa /opt/software/libgconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'gconf2-common' instead of './gconf2-common_3.2.6-4ubuntu1_all.deb'
The following NEW packages will be installed:
gconf2-common
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/700 kB of archives.
After this operation, 6,532 kB of additional disk space will be used.
Get:1 /opt/software/libgconf/gconf2-common_3.2.6-4ubuntu1_all.deb gconf2-common all 3.2.6-4ubuntu1 [700 kB]
Selecting previously unselected package gconf2-common.
(Reading database ... 263829 files and directories currently installed.)
Preparing to unpack .../gconf2-common_3.2.6-4ubuntu1_all.deb ...
Unpacking gconf2-common (3.2.6-4ubuntu1) ...
Setting up gconf2-common (3.2.6-4ubuntu1) ...
root@sa /opt/software/libgconf
root@sa /opt/software/libgconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libgconf-2-4' instead of './libgconf-2-4_3.2.6-4ubuntu1_amd64.deb'
Recommended packages:
gconf-service
The following NEW packages will be installed:
libgconf-2-4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/84.8 kB of archives.
After this operation, 583 kB of additional disk space will be used.
Get:1 /opt/software/libgconf/libgconf-2-4_3.2.6-4ubuntu1_amd64.deb libgconf-2-4 amd64 3.2.6-4ubuntu1 [84.8 kB]
Selecting previously unselected package libgconf-2-4:amd64.
(Reading database ... 263937 files and directories currently installed.)
Preparing to unpack .../libgconf-2-4_3.2.6-4ubuntu1_amd64.deb ...
Unpacking libgconf-2-4:amd64 (3.2.6-4ubuntu1) ...
Setting up libgconf-2-4:amd64 (3.2.6-4ubuntu1) ...
Processing triggers for libc-bin (2.28.21-1+deepin-1) ...
root@sa /opt/software/libgconf
3、安装 Prinul 客户端(pritunl-client-electron)
apt install pritunl-client-electron
root@sa /opt/software/libgconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
pritunl-client-electron
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 98.3 MB of archives.
After this operation, 419 MB of additional disk space will be used.
Get:1 http://repo.pritunl.com/stable/apt focal/main amd64 pritunl-client-electron amd64 1.3.3477.58-0ubuntu1~focal [98.3 MB]
Get:1 http://repo.pritunl.com/stable/apt focal/main amd64 pritunl-client-electron amd64 1.3.3477.58-0ubuntu1~focal [98.3 MB]
Fetched 22.4 MB in 1min 35s (236 kB/s)
Selecting previously unselected package pritunl-client-electron.
(Reading database ... 263947 files and directories currently installed.)
Preparing to unpack .../pritunl-client-electron_1.3.3477.58-0ubuntu1~focal_amd64.deb ...
Unpacking pritunl-client-electron (1.3.3477.58-0ubuntu1~focal) ...
Setting up pritunl-client-electron (1.3.3477.58-0ubuntu1~focal) ...
Failed to stop pritunl-client-electron.service: Unit pritunl-client-electron.service not loaded.
Failed to disable unit: Unit file pritunl-client-electron.service does not exist.
Created symlink /etc/systemd/system/multi-user.target.wants/pritunl-client.service → /etc/systemd/system/pritunl-client.service.
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for bamfdaemon (0.5.4.1-1+eagle) ...
Rebuilding /usr/share/applications/bamf-2.index...
root@sa /opt/software/libgconf
root@sa /opt/software/libgconf
于是解决
于是就可以开心的使用了
我们下期见,拜拜!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)