Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671172 - [Errno 74] Bad message: '/lib/systemd/system/*@.service
Summary: [Errno 74] Bad message: '/lib/systemd/system/*@.service
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-15 07:08 UTC by Necktwi Ozfguah
Modified: 2022-11-21 14:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Necktwi Ozfguah 2018-11-15 07:08:04 UTC
While merging or unmerging few packages I get this error

emerge [b]ntp-4.2.8_p12[/b] or [b]iptables-1.8.1-r1[/b] fails at install with
[code]OSError: [Errno 74] Bad message: b'/lib/systemd/system'[/code]

(RPi1B2):~ # wgetpaste /var/tmp/portage/net-misc/ntp-4.2.8_p12/temp/build.log
Your paste can be seen here: https://paste.pound-python.org/show/uwPWgpjDgtK15NDJeIko/

(RPi1B2):~ # wgetpaste /var/tmp/portage/net-firewall/iptables-1.8.1-r1/temp/build.log
Your paste can be seen here: https://paste.pound-python.org/show/Uryfub0fe7AKItyYM00C/

A similar error with [b]openssh[/b] emerge without distcc or ccache
(RPi1B2):~ # wgetpaste /var/tmp/portage/net-misc/openssh-7.9_p1/temp/build.log
Your paste can be seen here: https://paste.pound-python.org/show/ftPRGWBFD8H4Ug$K45MA/

same problem with [b]util-linux[/b], [b]netifrc[/b], [b]krb5[/b], [b]git[/b].


it even happens while unmerging
[code]
>>> Unmerging (4 of 14) sys-apps/util-linux-2.32.1...
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/emerge", line 53, in <module>
    retval = emerge_main()
  File "/usr/lib/python3.6/site-packages/_emerge/main.py", line 1289, in emerge_main
    return run_action(emerge_config)
  File "/usr/lib/python3.6/site-packages/_emerge/actions.py", line 3230, in run_action
    emerge_config.args, spinner)
  File "/usr/lib/python3.6/site-packages/_emerge/actions.py", line 2220, in action_uninstall
    scheduler=sched_iface)
  File "/usr/lib/python3.6/site-packages/_emerge/unmerge.py", line 582, in unmerge
    scheduler=scheduler)
  File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 5383, in unmerge
    retval = mylink.unmerge(ldpath_mtimes=ldpath_mtimes)
  File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 1676, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 2037, in unmerge
    retval = self._security_check([self] + others_in_slot)
  File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 3614, in _security_check
    s = os.lstat(path)
  File "/usr/lib/python3.6/site-packages/portage/__init__.py", line 250, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 74] Bad message: b'/lib/systemd/system'
[/code]

I never installed systemd on any of my machines.

BTW they all emerge well on qemu. But even their bin-packs failed with the same error.

I don't have build logs of these anymore except those pastes. Please bear it.
Comment 1 Mike Gilbert gentoo-dev 2018-11-15 07:14:53 UTC
This seems like some problem with portage itself.
Comment 2 Zac Medico gentoo-dev 2018-11-15 08:41:56 UTC
I guess the best we could do here is map the errno 74 to a suggestion to run fsck.

> <floppym> fs/ext4/ext4.h:#define EFSBADCRC        EBADMSG         /* Bad CRC detected */
> <floppym> (from the kernel)
> <floppym> That would indeed point to fs corruption.