Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionMiroslav Vadkerti
2012-03-14 17:14:22 UTC
Description of problem:
If rpm-sign package is not installed and I try to run rpm --addsign I get a very confusing error:
# ls *.rpm
lcms-1.15-1.2.2.x86_64.rpm
# rpm --addsign lcms-1.15-1.2.2.x86_64.rpm
rpm: lcms-1.15-1.2.2.x86_64.rpm: No such file or directory
If the rpmsign is now separately packed the rpm command should indicate the rpmsign binary is not available and not fail like this.
The error comes from execve I think:
execve("/usr/bin/rpmsign", ["/usr/bin/rpmsign", "--addsign", "lcms-1.15-1.2.2.x86_64.rpm"], [/* 26 vars */]) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8328d87000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2512
read(3, "", 4096) = 0
close(3) = 0
munmap(0x7f8328d87000, 4096) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "rpm: lcms-1.15-1.2.2.x86_64.rpm:"..., 59rpm: lcms-1.15-1.2.2.x86_64.rpm: No such file or directory
) = 59
exit_group(1) = ?
Version-Release number of selected component (if applicable):
rpm-4.9.1.2-1.el7
How reproducible:
100%
Steps to Reproduce:
1. rpm -e rpm-sign
2. wget a RPM_FILE
3. rpm --addsign RPM_FILE
Actual results:
Confusing error
Expected results:
rpm prints it cannot find rpmsign binary and this may be located in other package.
Additional info:
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
Description of problem: If rpm-sign package is not installed and I try to run rpm --addsign I get a very confusing error: # ls *.rpm lcms-1.15-1.2.2.x86_64.rpm # rpm --addsign lcms-1.15-1.2.2.x86_64.rpm rpm: lcms-1.15-1.2.2.x86_64.rpm: No such file or directory If the rpmsign is now separately packed the rpm command should indicate the rpmsign binary is not available and not fail like this. The error comes from execve I think: execve("/usr/bin/rpmsign", ["/usr/bin/rpmsign", "--addsign", "lcms-1.15-1.2.2.x86_64.rpm"], [/* 26 vars */]) = -1 ENOENT (No such file or directory) open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f8328d87000 read(3, "# Locale name alias data base.\n#"..., 4096) = 2512 read(3, "", 4096) = 0 close(3) = 0 munmap(0x7f8328d87000, 4096) = 0 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) write(2, "rpm: lcms-1.15-1.2.2.x86_64.rpm:"..., 59rpm: lcms-1.15-1.2.2.x86_64.rpm: No such file or directory ) = 59 exit_group(1) = ? Version-Release number of selected component (if applicable): rpm-4.9.1.2-1.el7 How reproducible: 100% Steps to Reproduce: 1. rpm -e rpm-sign 2. wget a RPM_FILE 3. rpm --addsign RPM_FILE Actual results: Confusing error Expected results: rpm prints it cannot find rpmsign binary and this may be located in other package. Additional info: