Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency issue whilst trying to install kopano-utils #15

Open
eugenefvdm opened this issue Jun 12, 2022 · 1 comment
Open

Dependency issue whilst trying to install kopano-utils #15

eugenefvdm opened this issue Jun 12, 2022 · 1 comment

Comments

@eugenefvdm
Copy link

Hi there,

Apologies for posting here.

I'm doing a trial IMAP migration from Dovecot to Kopano and wanted to use kopano-migration-imap which is part of Kopano Utils. So far the base of my Ubuntu 20.40 is using the exact the installation script from this repository. However, I run into this dependency issue:

# apt install kopano-utils
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:
 kopano-utils : Depends: kopano-libs (>= 8.7.0) but it is not going to be installed
                Depends: python3-kopano but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

So I thought, okay let's install that then. But now it seems that if I install kopano-libs I'm going to remove every single other package important to Kopano.

# apt install kopano-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  catdoc kopano-common kopano-lang libgd3 libgsoap-kopano-2.8.109 libimagequant0 libkcoidc0 libmariadb3 libs3-4 libtcmalloc-minimal4 libvmime-kopano3 libwebpdemux2 libwebpmux3 libxapian30 libxpm4 libzip5 php-gd php-mbstring php-zip php7.4-gd php7.4-mbstring php7.4-zip python3-bsddb3 python3-daemon python3-dateutil python3-lockfile python3-magic python3-olefile python3-pil
  python3-tzlocal python3-xapian xapian-tools xsltproc z-push-ipc-sharedmemory
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libawl-php libgsasl7 libgsoap-2.8.91 libntlm0 libvmime1 php-curl php7.4-curl z-push-backend-caldav
The following packages will be **REMOVED**:
  **kopano-backup kopano-client kopano-dagent kopano-dagent-pytils kopano-gateway kopano-ical kopano-monitor kopano-python-utils kopano-search kopano-server kopano-server-packages kopano-spooler kopano-webapp libkcarchiver0 libkcfreebusy0 libkcicalmapi0 libkcinetmapi0 libkcpyplug0 libkcserver0 libkcsoap0 libkcutil0 libmapi1 php7-mapi python3-kopano python3-kopano-search
  python3-kopano-utils python3-mapi z-push-backend-kopano z-push-kopano**
The following NEW packages will be installed:
  kopano-libs libawl-php libgsasl7 libgsoap-2.8.91 libntlm0 libvmime1 php-curl php7.4-curl z-push-backend-caldav

Although I have reverted to using native 'imapsync' which works, I would like some guidance as to why the above apt wouldn't work. I'm sure it's something basic I don't understand about apt and I just need a little bit of guidance.

(I would have posted this question on the Kopano community forums but I can't easily deduce if Kopano is an open source project anymore and for some reason I can't post on that forum anyway, as it seems locked or something)

@thctlo
Copy link
Owner

thctlo commented Jun 15, 2022

Hai, thats no problem.

What happend here is, or what i suspect.
You have parts installed from the Ubuntu Focal kopano packages en you to install the packages from Kopano itself,
which the script pulls in.

How to fix this.
Remove all kopano packages from the Ubuntu.

The few that often triggers this are the few that are not removed when removing kopano.

Tip1: apt remove --autoremove kopano-*
Tip2: just dont use it if you want to keep your config apt remove --autoremove --purge

Also, this tells you that kopano-utils is installed from the Ubuntu repo.

The following packages have unmet dependencies:
kopano-utils : Depends: kopano-libs (>= 8.7.0) but it is not going to be installed
Depends: python3-kopano but it is not going to be installed

When thats done. Check if these packages still are installed : libgsoap libvmime
And if so remove them.

Then try again to install them and to besure you get the version of kopano you want.
apt-cache policy kopano-server

Let me know if this worked out for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants