Resolving packages and dependencies… failed

Hey there,

i am trying to install ThinLinc on my ubuntu pc. But i am struggeling.

This is coming up during the installation:


Resolving packages and dependencies… failed.

Failed to resolve required packages and dependencies.

Logfile:

2025-02-14 10:25:06,082: *** tl-setup started ***
2025-02-14 10:25:06,083: Architecture: x86_64
2025-02-14 10:25:06,083: Distribution: Ubuntu
2025-02-14 10:25:06,083: Distribution version: 24.04
2025-02-14 10:25:06,083: Distribution family: Ubuntu
2025-02-14 10:25:06,083: Package format: deb
2025-02-14 10:25:06,083: Creating /usr/bin/thinlinc-login
2025-02-14 10:25:09,738: Server type: Master
2025-02-14 10:25:09,758: Running system checks...
2025-02-14 10:25:09,758: Checking for required libraries...
2025-02-14 10:25:09,761: 'libX11.so.6' found
2025-02-14 10:25:09,763: 'libc.so.6' found
2025-02-14 10:25:09,767: 'libcrypt.so.1' found
2025-02-14 10:25:09,771: 'libdl.so.2' found
2025-02-14 10:25:09,775: 'libgcc_s.so.1' found
2025-02-14 10:25:09,780: 'libm.so.6' found
2025-02-14 10:25:09,782: 'libnspr4.so' found
2025-02-14 10:25:09,785: 'libnss3.so' found
2025-02-14 10:25:09,789: 'libpam.so.0' found
2025-02-14 10:25:09,792: 'libpthread.so.0' found
2025-02-14 10:25:09,794: 'librt.so.1' found
2025-02-14 10:25:09,798: 'libssl3.so' found
2025-02-14 10:25:09,800: 'libutil.so.1' found
2025-02-14 10:25:09,802: 'libz.so.1' found
2025-02-14 10:25:09,805: 'libgssapi_krb5.so.2' found
2025-02-14 10:25:09,805: Checking for required binaries...
2025-02-14 10:25:09,805: 'gs' found
2025-02-14 10:25:09,806: 'ss' found
2025-02-14 10:25:09,806: 'pgrep' found
2025-02-14 10:25:09,806: '/usr/sbin/sendmail' not found
2025-02-14 10:25:09,806: 'xauth' found
2025-02-14 10:25:09,806: 'xhost' found
2025-02-14 10:25:09,806: NFS support found
2025-02-14 10:25:09,808: sshd running
2025-02-14 10:25:10,007: Cairo integration not found
2025-02-14 10:25:10,008: Python module ldap not found
2025-02-14 10:25:10,008: Testing ps2pdf...
2025-02-14 10:25:10,150: ps2pdf seems to work
2025-02-14 10:25:10,150: Checking if CUPS is running...
2025-02-14 10:25:10,151: Something is responding on port 631. Assuming it is CUPS
2025-02-14 10:25:10,151: CUPS is responding on /var/run/cups/cups.sock
2025-02-14 10:25:10,151: Looking for CUPS directories...
2025-02-14 10:25:10,151: Found CUPS prefix: /usr
2025-02-14 10:25:10,152: Found CUPS server directory: /usr/lib/cups
2025-02-14 10:25:10,289: No supported firewall backend detected.
2025-02-14 10:25:10,290: SELinux disabled or not present
2025-02-14 10:25:10,291: AppArmor enabled
2025-02-14 10:25:10,292: Checking if ThinLinc commands are allowed with sudo...
2025-02-14 10:25:10,304: System checks done.
2025-02-14 10:25:10,937: Resolving packages...
2025-02-14 10:25:25,006: Traceback (most recent call last):
2025-02-14 10:25:25,006:   File "/opt/thinlinc/libexec/dnfhelper", line 214, in <module>
2025-02-14 10:25:25,006:     main()
2025-02-14 10:25:25,006:   File "/opt/thinlinc/libexec/dnfhelper", line 205, in main
2025-02-14 10:25:25,007:     do_resolve(sys.argv[2:])
2025-02-14 10:25:25,007:   File "/opt/thinlinc/libexec/dnfhelper", line 69, in do_resolve
2025-02-14 10:25:25,007:     _prepare_transaction(base, pkgs)
2025-02-14 10:25:25,007:   File "/opt/thinlinc/libexec/dnfhelper", line 44, in _prepare_transaction
2025-02-14 10:25:25,007:     base.read_all_repos()
2025-02-14 10:25:25,007:   File "/usr/lib/python3/dist-packages/dnf/base.py", line 552, in read_all_repos
2025-02-14 10:25:25,007:     for repo in reader:
2025-02-14 10:25:25,007:   File "/usr/lib/python3/dist-packages/dnf/conf/read.py", line 42, in __iter__
2025-02-14 10:25:25,007:     for r in self._get_repos(self.conf.config_file_path):
2025-02-14 10:25:25,007:   File "/usr/lib/python3/dist-packages/dnf/conf/read.py", line 109, in _get_repos
2025-02-14 10:25:25,007:     parser.setSubstitutions(substs)
2025-02-14 10:25:25,007:   File "/usr/lib/python3/dist-packages/libdnf/conf.py", line 1640, in setSubstitutions
2025-02-14 10:25:25,008:     return _conf.ConfigParser_setSubstitutions(self, substitutions)
2025-02-14 10:25:25,008:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-14 10:25:25,008: TypeError: in method 'ConfigParser_setSubstitutions', argument 2 of type 'std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > const &'
2025-02-14 10:25:25,121: Failure resolving packages.

Any ideas how i could resolve this?

Thanks in advance! :slight_smile:
Phile

It seems your Ubuntu system has some version of dnf installed, which is why ThinLinc setup gets confused. Do you need dnf for some specific reason?

Thanks for the reply. I uninstalled dnf and restarted the setup… same result :frowning:

Do you still get the same traceback in /var/log/tlsetup.log?

Yes, i updated the log in the first post.

If you do apt install dnf, apt will install ~15 dependencies as well. Just doing apt remove dnf will not remove those dependency-packages. The key package is probably python3-dnf, but I didn’t verify that.

Using apt’s built in “autoremove” is probably the best tip, it will remove unused dependencies:

sudo apt autoremove

Thanks a lot! This fixed at least the problem of the installation process.

Now i have to fix the sudo permission and get it to work.

Thanks a lot @samuel!