Can't install deb package by dpkg

I have manjaro and when i want to install a specific .deb file by dpkg i get these massages.

sudo dpkg -i kerio-control-vpnclient-9.3.0-3273-linux-amd64.deb 
[sudo] password for USER_NAME: 
(Reading database ... 29 files and directories currently installed.)
Preparing to unpack kerio-control-vpnclient-9.3.0-3273-linux-amd64.deb ...
Unpacking kerio-control-vpnclient (9.3.0.3273-1) over (9.3.0.3273-1) ...
dpkg: dependency problems prevent configuration of kerio-control-vpnclient:
 kerio-control-vpnclient depends on libc6 (>= 2.15); however:
  Package libc6 is not installed.
 kerio-control-vpnclient depends on libgcc1 (>= 1:4.1.1); however:
  Package libgcc1 is not installed.
 kerio-control-vpnclient depends on libstdc++6 (>= 4.9); however:
  Package libstdc++6 is not installed.
 kerio-control-vpnclient depends on libuuid1 (>= 2.16); however:
  Package libuuid1 is not installed.
 kerio-control-vpnclient depends on debconf (>= 0.5); however:
  Package debconf is not installed.
 kerio-control-vpnclient depends on procps; however:
  Package procps is not installed.

dpkg: error processing package kerio-control-vpnclient (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 kerio-control-vpnclient

but some packages are installed like procps & debconf
what should I do?

pacman is the package manager used on Manjaro. Do not use any other package manager if you’re unsure about what you’re doing. Most packages may be found in the official repositories or in the AUR; use those.

kerio-control-vpnclient is available in the AUR, run pamac build kerio-control-vpnclient to install it.

To avoid confusion: pamac, yay, paru, etc. are not package managers in and of themselves like pacman, they’re are merely “wrappers” around pacman that provide extra useful features.

3 Likes

pamac build kerio-control-vpnclient

And you are done!

I was looking in AUR but i could’t find the exactly package that i want however that site is forbidden in my country so I cant use it

You mean https://aur.archlinux.org?

no kerio site

this is the answer that I get :

curl: (22) The requested URL returned error: 403 Forbidden
==> ERROR: Failure while downloading http://download.kerio.com/dwn/control/control-9.3.0-3273/kerio-control-vpnclient-9.3.0-3273-linux-amd64.deb
    Aborting...
Error: Failed to build kerio-control-vpnclient

In that case run

git clone https://aur.archlinux.org/kerio-control-vpnclient.git

then copy the deb file into the kerio-control-vpnclient directory, then open the PKGBUILD and change

source=("http://download.kerio.com/dwn/control/control-${pkgver%.*}-${pkgver##*.}/kerio-control-vpnclient-${pkgver%.*}-${pkgver##*.}${_pkgver_patch_level}-linux-amd64.deb"

to

source=("kerio-control-vpnclient-${pkgver%.*}-${pkgver##*.}${_pkgver_patch_level}-linux-amd64.deb"

and then run pamac build in that directory.

dpkg is only available in AUR (edit: and community repo) to help packagers with packaging for the Debian distro and shouldn’t be used by users to install software in Arch based distros like Manjaro.

I get this :

** (pamac:98320): WARNING **: 21:09:15.850: database.vala:2049: Failed to ch
ange to directory “/home/sadegh/Downloads/gits/kerio/pamac-build/kerio-contr
ol-vpnclient” (No such file or directory)
Nothing to do.

On the contrary, in (community) is dpkg and the new ones sometimes try to use it.

I get this at the end:
Total Installed Size: 8.30 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                     [##################] 100%
(1/1) checking package integrity                   [##################] 100%
(1/1) loading package files                        [##################] 100%
(1/1) checking for file conflicts                  [##################] 100%
error: failed to commit transaction (conflicting files)
kerio-control-vpnclient: /usr/lib/libktcrypto.so.1.0.0 exists in filesystem
kerio-control-vpnclient: /usr/lib/libktssl.so.1.0.0 exists in filesystem
kerio-control-vpnclient: /usr/lib/libktz.so.1 exists in filesystem
kerio-control-vpnclient: /usr/lib/libkvnet.so exists in filesystem
kerio-control-vpnclient: /usr/share/doc/kerio-control-vpnclient/Acknowledgme
nts.gz exists in filesystem
kerio-control-vpnclient: /usr/share/doc/kerio-control-vpnclient/copyright ex
ists in filesystem
Errors occurred, no packages were upgraded.
==> WARNING: Failed to install built package(s).
[sadegh@sadegh-lifebooklh530 kerio-control-vpnclient]

what should i do

Run sudo dpkg -P kerio-control-vpnclient, then try again.