Reading package lists…
Building dependency tree…
Reading state information…
Calculating upgrade…
The following packages have been kept back:
ethtool firmware-sof-signed
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up update-notifier-common (3.192.54.8) …
Traceback (most recent call last):
File “/usr/lib/update-notifier/package-data-downloader”, line 24, in
import debian.deb822
ModuleNotFoundError: No module named ‘debian’
dpkg: error processing package update-notifier-common (–configure):
installed update-notifier-common package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
update-notifier-common
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Updating system packages…
Installing system packages…
Initializing system random number generator…
Opening alternate SSH port ???.
Firewall is active and enabled on system startup
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Installing nsd (DNS server)…
Installing Postfix (SMTP server)…
Traceback (most recent call last):
File “/root/mailinabox/tools/editconf.py”, line 80, in
input_lines = list(f)
File “/usr/lib/python3.10/codecs.py”, line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xec in position 752: invalid continuation byte
Make a backup of the file outside of the mailinabox directory, like in your home, then follow the instructions in this post, with using your current version number, to return you mailinabox directory to the same as the git version. (the post was for v62)
Hello,
Can someone please take a look at my problem with upgrading from version 67 to 68? I have not been able to deal with it yet and the problem persists.
Thanks a lot and sorry for the machine translation.
This next part is a bit of a stab in the dark, the byte 0xec is ì (small i with grave) in Latin-1. Try using grep on these three files to identify which one/s have the byte.
grep -P "\xec" /etc/postfix/main.cf
I would then visually inspect the file file to see if you can find the small i with grave to confirm it is Latin-1.
Then make a backup the file, and possibly of MiaB.
Run iconv to convert the file from Latin-1 to utf-8, where input.file is the file that you identified above.
iconv -f ISO-8859-1 -t UTF-8//TRANSLIT input.file
Restart postfix and see if the configuration works without errors.