yum install libreoffice‘ returned a non-zero

The command ‘/bin/sh -c yum install libreoffice’ returned a non-zero code: 1

1. 异常信息

Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2023-08-28.13-42.EftXfl.yumtx
The command '/bin/sh -c yum install libreoffice' returned a non-zero code: 1
script returned exit code 1

2. 查看 Dockerfile

RUN yum install  libreoffice

3. 添加 -y

```java
RUN yum install -y  libreoffice



#### 4.  另外异常 Rpmdb checksum is invalid: dCDPT(pkg checksums) :avalon-logkit.noarch 0:2.1-14.el7 -u





#### 5.  加 RUN rpm --rebuilddb  重建数据库

```java
RUN rpm --rebuilddb  && yum install -y libreoffice

你可能感兴趣的:(centos,linux,运维)