Errors were encountered while processing: rabbitmq-server

来源:互联网 发布:修睿乔杉潘斌龙网络剧 编辑:程序博客网 时间:2024/06/10 01:42

今天装openStack环境过程中出现如下错误:

Errors were encountered while processing:

 rabbitmq-server

E: Sub-process /usr/bin/dpkg returned an error code (1)


原因是因为/etc/hosts 文件中的IP与<hostname>映射不正确

解决办法:

$ hostname
$ sudo vim /etc/hosts
127.0.0.1 localhost
ip <hostname>   
#ip网上ip,<hostname>-机器名

原创粉丝点击