Duplicati not been installed in Linux Mint 22

Hi,

As per the subject, I would like to inform you that I have installed Fresh Linux Mint 22 in my laptop (earlier I was using Linux Mint 21.3). In older version Duplicati was working fine, but in new version I am unable to install duplicati. Please find the attachments for your reference.

Can anyone please help me to resolve this issue?

Thanks in advance.

Regards
Lokesh Kamath


Error Installing Duplicati
Duplicat is Removing while fix broken install command

Linux Mint 22 is based on Ubuntu 24.04 which dropped the packages that Duplicati is looking for.
Long-term, Duplicati 2.0.9.x provides an entirely different way of implementing a tray icon display.
This is still in Canary test, which means surprises may occur. You can monitor releases feedback.
Chronological release notes are linked from download page, but wind up at the GitHub Releases.

If you prefer 2.0.8.1 Beta, the .zip install should install, so you can run Server without TrayIcon (assuming that other required dependencies are there now, which I suppose is somewhat TBD).
This will be kind of inconvenient to set up, especially if you want it running under systemd control.
Easier parh would be manual start, e.g. running as you, but I don’t know if that’s how you want it.

You can find some other forum information by looking at Ubuntu 24.04, but here’s the issue on it:

Thanks for your response.

I tried this but no luck.

Tried which? What failed?

FWIW unzip of 2.0.8.1, install of mono-complete, and mono ./Duplicati.Server.exe works for me, however I’m on Ubuntu 24.04. Because it’s not a TrayIcon, browse to localhost:8200 by hand.

TrayIcon (unlike Server) does not start, presumably due to OS removing graphics dependencies.

 mono ./Duplicati.GUI.TrayIcon.exe
Unexpected error: System.TypeLoadException: Could not load type of field 'Duplicati.GUI.TrayIcon.GtkRunner:m_trayIcon' (1) due to: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
  at Duplicati.GUI.TrayIcon.Program.RunTrayIcon (System.String toolkit) [0x00027] in <3ea059db9f9241b999c39793a8f6f091>:0 
  at Duplicati.GUI.TrayIcon.Program.StartTray (System.String[] _args, System.Collections.Generic.Dictionary`2[TKey,TValue] options, System.String toolkit, Duplicati.GUI.TrayIcon.HostedInstanceKeeper hosted, System.String password, System.Boolean saltedpassword) [0x00066] in <3ea059db9f9241b999c39793a8f6f091>:0 

My 2.0.8.1 dependency lack is like yours on the appindicator side, plus also has a GTK problem:

The following packages have unmet dependencies:
 duplicati : Depends: libappindicator0.1-cil but it is not installable or
                      libappindicator3-0.1-cil but it is not installable or
                      libayatana-appindicator1 but it is not installable
             Depends: gtk-sharp2 but it is not installable

but (at least so far) the .zip install works. If yours did not, please give some information on that.

Thanks for your info.

Please find the below / attached image for your information.

Error Message:
mono ‘/home/lokeshkamaths/Downloads/duplicati-2.0.8.1_beta_2024-05-07/Duplicati.Server.exe’
A serious error occurred in Duplicati: System.Exception: Failed to create, open or upgrade the database.
Error message:
The database has version 8 but the largest supported version is 6.

This is likely caused by upgrading to a newer version and then downgrading.
If this is the case, there is likely a backup file of the previous database version in the folder /root/.config/Duplicati.
at Duplicati.Server.Program.GetDatabaseConnection (System.Collections.Generic.Dictionary`2[TKey,TValue] commandlineOptions) [0x00229] in <17916a3bd21d425da6aeece2c5428e16>:0
at Duplicati.Server.Program.RealMain (System.String _args) [0x001a7] in <17916a3bd21d425da6aeece2c5428e16>:0

Screenshot from 2024-10-23 15-16-33

That indicates that you have been running on of the Canary builds on this machine.
Version 8 indicates that you have been running 2.0.9.105 or later.

There should be a copy of the database pre-upgrade in:

~/.config/Duplicati/

There should be Duplicati-server.sqlite files with a timestamp in them, indicating when the copy was made.

If you want to downgrade the database, you need to run these two commands with an SQLite tool:

DROP TABLE "TokenFamily";
UPDATE "Version" SET "Version" = 6;

Thanks for your immediate response.

Instead of this can i uninstall duplicati completely? & run the 2.0.8 zip file? If so can you please help in removing the 2.0.9?

I am not aware of how you installed the canary build, but generally uninstall the same way you installed it. However, having it installed should not interfere, unless you accidentally run the wrong version.

Note that uninstalling it will not downgrade the database, you need to do that manually, either by finding the backup or running the SQL commands I wrote.

Is there a reason why you do not want to just use the latest canary build? It is quite a lot simpler to get running on Ubuntu/Mint and saves you the overhead of installing Mono.

I tried installing canary build. After installing it was asking user name & password. I have not gave any user name & password while installing. so tried in many ways to login. unfortunately didn’t succeed. so uninstalled canary build.

Also can you please guide me how to run that command to downgrade the database?

Thanks in advance.

Yes, that is an unfortunate pain-point with increasing the security. There are a few ways to get around this but the two easiest paths are:

  1. Start from the tray-icon on the Desktop, which will automatically log you in
  2. Stop Duplicati, then start either duplicati or duplicati-server with --webservice-password=<newpassword>
    Note: the password is remembered, so you only need to do it once

If you are confident with the commandline, you can use the SQLite3 CLI.

Essentially you run:

> sqlite3 Duplicati-server.sqlite
sqlite> DROP TABLE "TokenFamily";
sqlite> UPDATE "Version" SET "Version" = 6;
sqlite> .quit

If you prefer a GUI version there is SQLite Browser.

Thank you @kenkendk. :heart_eyes:

I have reinstalled Canary Build. & tired using as per your info & it is working. I tried backing up my system. It’s done.

Thank you so much. :pray: :pray: :handshake: :handshake:

One more question I have is after the official release of Newer Duplicati how to upgrade to that?

1 Like

For now there is no automated updated for Duplicati 2.0.9.x+ due to the new package structure.
Once a new version is available, you get a notification in the UI.
The update process is then just removing the previous version and installing the new version.
The plan is to make this a bit more automated in the future.

Ok.

Thank you so much.