Red Hat Bugzilla – Bug 1476404
rpm scriptlet error when installing certbot in a container
Last modified: 2018-05-03 04:32:16 EDT
Description of problem:
when installing certbot in a container I see:
Running scriptlet: certbot-0.14.1-3.fc26.noarch 50/50
Traceback (most recent call last):
File "/sbin/semanage", line 28, in <module>
File "/usr/lib64/python3.6/site-packages/seobject.py", line 1046, in <module>
File "/usr/lib64/python3.6/site-packages/seobject.py", line 1048, in portRecords
valid_types = list(list(sepolicy.info(sepolicy.ATTRIBUTE, "port_type"))["types"])
File "/usr/lib/python3.6/site-packages/sepolicy/__init__.py", line 193, in <genexpr>
File "/usr/lib64/python3.6/site-packages/setools/typeattrquery.py", line 65, in results
for attr in self.policy.typeattributes():
AttributeError: 'NoneType' object has no attribute 'typeattributes'
Version-Release number of selected component (if applicable):
[root@origin-master-1 ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.fedoraproject.org/fedora 26 c33114392d5e 3 weeks ago 231 MB
[root@origin-master-1 ~]# docker inspect c33114392d5e
"Comment": "Created by Image Factory",
Steps to Reproduce:
1. docker run -it -p80:80 -v /tmp/stuff:/workdir/ registry.fedoraproject.org/fedora:26 /bin/bash
2. dnf install -y certbot
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora 'version'
Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.