Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77479 - [metasploit] 6.2.36-1 error: unable to normalize alternate object

Attached to Project: Community Packages
Opened by temp (temp) - Monday, 13 February 2023, 11:06 GMT
Last edited by kpcyrd (kpcyrd) - Wednesday, 15 February 2023, 18:58 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
kpcyrd (kpcyrd)
T.J. Townsend (blakkheim)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

metasploit : error: unable to normalize alternate object


Additional info:
* package version(s) : community/metasploit 6.2.36-1


Steps to reproduce:
yay -S metasploit

msfconsole
error: unable to normalize alternate object path: /srcdest/metasploit-framework/objects

This task depends upon

Closed by  kpcyrd (kpcyrd)
Wednesday, 15 February 2023, 18:58 GMT
Reason for closing:  Fixed
Additional comments about closing:  metasploit-6.3.2-1-x86_64.pkg.tar.zst
Comment by Toolybird (Toolybird) - Wednesday, 15 February 2023, 00:49 GMT
Cannot repro in a test VM. But there is an upstream issue here [1]. Assigning to PM's for a look.

[1] https://github.com/rapid7/metasploit-framework/issues/17604
Comment by kpcyrd (kpcyrd) - Wednesday, 15 February 2023, 09:01 GMT
msfconsole from metasploit 6.2.36-1 starts up correctly for me:

% msfconsole -q
fatal: detected dubious ownership in repository at '/opt/metasploit'
To add an exception for this directory, call:

git config --global --add safe.directory /opt/metasploit
msf6 >

I can reproduce the nasm-shell error from the upstream issue:

% /opt/metasploit/tools/exploit/nasm_shell.rb
fatal: detected dubious ownership in repository at '/opt/metasploit'
To add an exception for this directory, call:

git config --global --add safe.directory /opt/metasploit
/opt/metasploit/lib/rex/ui/text/shell/history_manager.rb:63:in `clear_readline': uninitialized constant #<Class:#<HistoryManager stack size: 0>>::Readline (NameError)
from /opt/metasploit/lib/rex/ui/text/shell/history_manager.rb:99:in `switch_context'
from /opt/metasploit/lib/rex/ui/text/shell/history_manager.rb:29:in `push_context'
from /opt/metasploit/lib/rex/ui/text/shell.rb:133:in `run'
from /opt/metasploit/.tools/exploit/nasm_shell.rb:44:in `<main>'
Comment by kpcyrd (kpcyrd) - Wednesday, 15 February 2023, 09:04 GMT
I suspect this file is causing issues:

% cat /opt/metasploit/.git/objects/info/alternates
/srcdest/metasploit-framework/objects

Are you running msfconsole as root, by chance?
Comment by T.J. Townsend (blakkheim) - Wednesday, 15 February 2023, 17:54 GMT

Loading...