CentOS8安装libgdiplus 依赖 执行
sudo yum install libgdiplus
报错
[root@ecs-87157 wwwroot]# sudo yum install libgdiplus Repository extras is listed more than once in the configuration Last metadata expiration check: 2:43:55 ago on Thu 21 Jul 2022 10:23:37 AM CST. Dependencies resolved. ============================================================================================================================================================================================================================================================ Package Architecture Version Repository Size ============================================================================================================================================================================================================================================================ Installing: libgdiplus0 x86_64 6.0.5-0.xamarin.1.epel8 download.mono-project.com_repo_centos8_ 638 k Installing dependencies: giflib x86_64 5.1.4-3.el8 appstream 51 k libexif x86_64 0.6.22-5.el8_3 appstream 431 k Transaction Summary ============================================================================================================================================================================================================================================================ Install 3 Packages Total size: 1.1 M Installed size: 3.1 M Is this ok [y/N]: y Downloading Packages: [SKIPPED] giflib-5.1.4-3.el8.x86_64.rpm: Already downloaded [SKIPPED] libexif-0.6.22-5.el8_3.x86_64.rpm: Already downloaded [SKIPPED] libgdiplus0-6.0.5-0.xamarin.1.epel8.x86_64.rpm: Already downloaded Public key for libgdiplus0-6.0.5-0.xamarin.1.epel8.x86_64.rpm is not installed The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: GPG check FAILED
网上找了好多解决方案各种离线安装 都没有用 直到看到 在结尾加上 --nogpgcheck 成功解决
执行代码
yum/dnf install packagemame --nogpgcheck