这是我的部分安装日志 [Notice] postfix-3.5 is not installed. [db*-devel Installing] ************************************************** >> Last metadata expiration check: 0:36:46 ago on Wed Nov 1 19:22:24 2023. Package dbus-devel-1:1.12.20-8.el9.x86_64 is already installed. Package dbus-glib-devel-0.110-13.el9.x86_64 is already installed. Package dbusmenu-qt5-devel-0.9.3-0.28.20160218.el9.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! [db4-devel Installing] ************************************************** >> Last metadata expiration check: 0:36:48 ago on Wed Nov 1 19:22:24 2023. No match for argument: db4-devel Error: Unable to find a match: db4-devel [libdb-devel Installing] ************************************************** >> Last metadata expiration check: 0:36:49 ago on Wed Nov 1 19:22:24 2023. Package libdb-devel-5.3.28-53.el9.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! Creating mailbox file: File exists useradd: user 'amh-mail' already exists Last metadata expiration check: 0:36:51 ago on Wed Nov 1 19:22:24 2023. Dependencies resolved. 好像db4-devel没有找到,然后末尾还有一部分日志 DDEF_SENDMAIL_PATH=\"/usr/local/postfix-3.5/usr/sbin/ sendmail\" -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_DEV_URANDOM -DHAS_PCRE -UUSE_DYNAMIC_LIBS -DDEF_SHLIB_DIR=\"no\" -UUSE_DYNAMIC_MAPS -Wmissing-prototypes -Wformat -Wno-comment -fco mmon -g -O -I. -DLINUX5 -c dict_nis.c dict_nis.c:42:10: fatal error: rpcsvc/ypclnt.h: No such file or directory 42 | #include | ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:192: dict_nis.o] Error 1 make: *** [Makefile:94: update] Error 1 postfix-install: Error: no bin/postconf file. Did you forget to run "make"? chown: cannot access '/usr/local/postfix-3.5/var/spool/postfix/private': No such file or directory chown: cannot access '/usr/local/postfix-3.5/var/spool/postfix/public': No such file or directory chown: cannot access '/usr/local/postfix-3.5/var/spool/postfix/public': No such file or directory 按照思否上搜到的postfix无法安装的答复内容执行了 yum install db*-devel Last metadata expiration check: 0:40:55 ago on Wed 01 Nov 2023 07:22:24 PM CST. Package dbus-devel-1:1.12.20-8.el9.x86_64 is already installed. Package dbus-glib-devel-0.110-13.el9.x86_64 is already installed. Package dbusmenu-qt5-devel-0.9.3-0.28.20160218.el9.x86_64 is already installed. Dependencies resolved. Nothing to do. Complete! 感谢amh的回答,我按照在centos.pkgs.org找到的安装方法执行 dnf --enablerepo=crb install libnsl2-devel Total 282 kB/s | 145 kB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : libtirpc-devel-1.3.3-2.el9.x86_64 1/2 Installing : libnsl2-devel-2.0.0-1.el9.x86_64 2/2 Running scriptlet: libnsl2-devel-2.0.0-1.el9.x86_64 2/2 Verifying : libnsl2-devel-2.0.0-1.el9.x86_64 1/2 Verifying : libtirpc-devel-1.3.3-2.el9.x86_64 2/2 Installed: libnsl2-devel-2.0.0-1.el9.x86_64 libtirpc-devel-1.3.3-2.el9.x86_64 Complete! 成功安装libnsl2-devel 在面板安装postfix也成功安装上了,最后再次感谢amh的答复,本以为要等十天半月我的提问才会被注意到,居然有这么快的回复效率,点赞!!!👍👍👍