Bug 8464 - Packages which requires input from user aren't handled by tl-setup
Summary: Packages which requires input from user aren't handled by tl-setup
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-28 13:50 CET by Emelie
Modified: 2024-12-03 13:27 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Emelie cendio 2024-11-28 13:50:38 CET
When running tl-setup on Ubuntu 24.10, it fails to install the postfix dependency. 

To try to resolve the issue, an attempt to install postfix manually was made, where we can see that the installer asks for more input in a gui, before the installation can complete.

It looks like tl-setup can't continue installing, since we have no way of handling such situations.
Comment 1 Emelie cendio 2024-11-28 13:56:32 CET
After tl-setup fails, it is also not possible to install other packages, e.g. directly with apt.

> Setting up postfix (3.9.0-3) ...
> 
> Postfix (main.cf) configuration was not modified by debconf.  If you need to
> make changes, edit /etc/postfix/main.cf (and others) as needed.  To view
> Postfix configuration values, see postconf(1).
> 
> After modifying main.cf, be sure to run 'systemctl reload postfix'.
> 
> Running newaliases
> newaliases: warning: valid_hostname: numeric hostname: 10
> newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter
> value: 10
> dpkg: error processing package postfix (--configure):
>  installed postfix package post-installation script subprocess returned error ex
> it status 75
> Setting up ncurses-term (6.5-2) ...
> Processing triggers for man-db (2.12.1-3) ...
> Processing triggers for ufw (0.36.2-6) ...
> Errors were encountered while processing:
>  postfix
> Error: Sub-process /usr/bin/dpkg returned an error code (1)

It can be fixed by removing '/etc/postfix/main.cf' followed by running 'systemctl reload postfix', but users should not have to do these steps to be able to complete the setup...
Comment 2 Emelie cendio 2024-11-29 09:47:22 CET
In tl-setup GUI:
> Pop-up window: System program problem detected
> Do you want to report the problem now?

> Failed to install required packages and dependencies.
> Send a copy of /var/llog/tlsetup.log to the ThinLinc support.
Visit https://www.cendio.com/thinlinc/support for more information on how to contact us.

In tl-setup text:
Similar message as in the GUI


From tlsetup.log

> 2024-11-29 09:13:36,853: Errors were encountered while processing:
> 2024-11-29 09:13:36,853: postfix
> 2024-11-29 09:13:36,853: E:Sub-process /usr/bin/dpkg returned an error code (1)
> 2024-11-29 09:13:36,853: failed to install packages with reason: iontsallArchives() failed
Comment 3 Pierre Ossman cendio 2024-12-03 13:27:50 CET
Debian/Ubuntu have worked to make sure packages don't require any interactive input, so that they work well with GUI frontends. So this bug is a bit surprising.

Let's wait a bit and see if this is a bug that Ubuntu will resolve before digging further.

Note You need to log in before you can comment on or make changes to this bug.