Article 5QXZ2 dpkg error when apt-get upgrade

dpkg error when apt-get upgrade

by
qeriyo
from LinuxQuestions.org on (#5QXZ2)
Hi,

I am getting the following errors when I try and upgrade. The folloeing is the out put from updating.

qeriyo@qeriyo:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up amavisd-new (1:2.11.0-6.1ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: failed (Result: exit-code) since Wed 2021-10-20 12:45:52 PST; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 18038 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Oct 20 12:45:52 qeriyo amavis[18075]: head: cannot open '/etc/mailname' for reading: No such file or directory
Oct 20 12:45:52 qeriyo amavis[18066]: The value of variable $myhostname is "qeriyo", but should have been
Oct 20 12:45:52 qeriyo amavis[18066]: a fully qualified domain name; perhaps uname(3) did not provide such.
Oct 20 12:45:52 qeriyo amavis[18066]: You must explicitly assign a FQDN of this host to variable $myhostname
Oct 20 12:45:52 qeriyo amavis[18066]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Oct 20 12:45:52 qeriyo amavis[18066]: network name!
Oct 20 12:45:52 qeriyo amavis[18038]: (failed).
Oct 20 12:45:52 qeriyo systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 12:45:52 qeriyo systemd[1]: amavis.service: Failed with result 'exit-code'.
Oct 20 12:45:52 qeriyo systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
dpkg: error processing package amavisd-new (--configure):
installed amavisd-new package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of amavisd-milter:
amavisd-milter depends on amavisd-new; however:
Package amavisd-new is not configured yet.

dpkg: error processing package amavisd-milter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amavisd-milter-dbgsym:
amavisd-milter-dbgsym depends on amavisd-milter (= 1.5.0-5); however:
Package amavisd-milter is not configured yet.

dpkg: error processing package amavisd-milter-dbgsym (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amavisd-new
amavisd-milter
amavisd-milter-dbgsym
E: Sub-process /usr/bin/dpkg returned an error code (1)
qeriyo@qeriyo:~$ /etc/amavis/conf.d/05-node_id
bash: /etc/amavis/conf.d/05-node_id: Permission denied
qeriyo@qeriyo:~$ sudo /etc/amavis/conf.d/05-node_id
sudo: /etc/amavis/conf.d/05-node_id: command not found
qeriyo@qeriyo:~$ sudo apt-get upgrade zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
qeriyo@qeriyo:~$ sudo apt-get install zentyal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package zentyal
qeriyo@qeriyo:~$ dpkg --configure -a
dpkg: error: requested operation requires superuser privilege
qeriyo@qeriyo:~$ sudo dpkg --configure -a
Setting up amavisd-new (1:2.11.0-6.1ubuntu1) ...
Creating/updating amavis user account...
Job for amavis.service failed because the control process exited with error code.
See "systemctl status amavis.service" and "journalctl -xe" for details.
invoke-rc.d: initscript amavis, action "start" failed.
amavis.service - LSB: Starts amavisd-new mailfilter
Loaded: loaded (/etc/init.d/amavis; generated)
Active: failed (Result: exit-code) since Wed 2021-10-20 13:06:20 PST; 6ms ago
Docs: man:systemd-sysv-generator(8)
Process: 20381 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE)

Oct 20 13:06:19 qeriyo amavis[20400]: head: cannot open '/etc/mailname' for reading: No such file or directory
Oct 20 13:06:20 qeriyo amavis[20395]: The value of variable $myhostname is "qeriyo", but should have been
Oct 20 13:06:20 qeriyo amavis[20395]: a fully qualified domain name; perhaps uname(3) did not provide such.
Oct 20 13:06:20 qeriyo amavis[20395]: You must explicitly assign a FQDN of this host to variable $myhostname
Oct 20 13:06:20 qeriyo amavis[20395]: in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
Oct 20 13:06:20 qeriyo amavis[20395]: network name!
Oct 20 13:06:20 qeriyo amavis[20381]: (failed).
Oct 20 13:06:20 qeriyo systemd[1]: amavis.service: Control process exited, code=exited, status=1/FAILURE
Oct 20 13:06:20 qeriyo systemd[1]: amavis.service: Failed with result 'exit-code'.
Oct 20 13:06:20 qeriyo systemd[1]: Failed to start LSB: Starts amavisd-new mailfilter.
dpkg: error processing package amavisd-new (--configure):
installed amavisd-new package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of amavisd-milter:
amavisd-milter depends on amavisd-new; however:
Package amavisd-new is not configured yet.

dpkg: error processing package amavisd-milter (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of amavisd-milter-dbgsym:
amavisd-milter-dbgsym depends on amavisd-milter (= 1.5.0-5); however:
Package amavisd-milter is not configured yet.

dpkg: error processing package amavisd-milter-dbgsym (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
amavisd-new
amavisd-milterroblem
amavisd-milter-dbgsym
qeriyo@qeriyo:~$

I have google this problem and tried several ways to fix this, but nothing seems to work.

Thanks in advance for your help.latest?d=yIl2AUoC8zA latest?i=9DIXPATRii0:SeWM-sga5oA:F7zBnMy latest?i=9DIXPATRii0:SeWM-sga5oA:V_sGLiP latest?d=qj6IDK7rITs latest?i=9DIXPATRii0:SeWM-sga5oA:gIN9vFw9DIXPATRii0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments