So I did 'sudo apt remove postfix' and 'purge' command to remove and then tried 'sudo apt install postfix'.
But now I have a very strange error that I cannot recover from even though I have ran 'sudo dpkg --audit' and cleaned up everthing to the point where I do NOT get any reported errors or warnings with 'dpg --audit'.
Code: Select all
sudo apt install postfix
The following NEW packages will be installed:
postfix
0 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.
Need to get 0 B/1,245 kB of archives.
After this operation, 4,180 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Invalid [] range "s-e" in regex; marked by <-- HERE in m/(^|[\.])[email-smtp.us-e <-- HERE ast-1.amazonaws.com]:587$/ at /tmp/postfix.config.M3Dm0B line 244, <STDIN> line 16.
postfix failed to preconfigure, with exit status 255
(Reading database ... 413301 files and directories currently installed.)
Preparing to unpack .../postfix_3.6.4-1ubuntu1_amd64.deb ...
Invalid [] range "s-e" in regex; marked by <-- HERE in m/(^|[\.])[email-smtp.us-e <-- HERE ast-1.amazonaws.com]:587$/ at /var/lib/dpkg/tmp.ci/config line 244, <STDIN> line 16.
dpkg: error processing archive /var/cache/apt/archives/postfix_3.6.4-1ubuntu1_amd64.deb (--unpack):
new postfix package pre-installation script subprocess returned error exit status 255
Errors were encountered while processing:
/var/cache/apt/archives/postfix_3.6.4-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
But I cannot resolve it and don't even know what to selectively restore from my BORG backup respositories/archives.
Thought I would start with you folks that maintain MINT. Surely there is a way to clean up the residual garbage.
Current state of my desktop (from neofetch):
OS: Linux Mint 21 x86_64
Kernel: 5.15.0-58-generic
Packages: 2620 (dpkg), 17 (flatpak)
Shell: bash 5.1.16
Resolution: 1920x1080, 1920x1080
DE: Xfce 4.16
WM: Xfwm4
Theme: Greybird [GTK2], Mint-Y [GTK3]
Icons: elementary-xfce-dark [GTK2], Mint-Y [GTK3]
Terminal: konsole
CPU: AMD Ryzen 5 2400G (8) @ 3.600GHz
GPU: AMD ATI Radeon RX 470/480/570/570X/580/580X/590
Memory: 1873MiB / 15904MiB