Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solv]emerge crashes system because new merge-usr baselayout

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
artbody
Guru
Guru
User avatar
Posts: 494
Joined: Fri Sep 15, 2006 7:55 pm
Location: LB
Contact:
Contact artbody
Website

[solv]emerge crashes system because new merge-usr baselayout

  • Quote

Post by artbody » Wed Feb 28, 2024 5:52 pm

Very strange system crash
emerge world update crashes system because new merge-usr baselayout


what i did

Code: Select all

emerge --sync
okay

Code: Select all

emerge  --keep-going -avuDNt --verbose-conflicts --with-bdeps y --backtrack=300  world
then emerge gives a message my selected profile is outdated and i should select a new one.

eselect profile list

Code: Select all

  [10]  default/linux/amd64/17.1/desktop/plasma/systemd (stable) 
  [11]  default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr (stable)
i think it has to be 10 but i selected 11

and started

Code: Select all

emerge  --keep-going -avuDNt --verbose-conflicts --with-bdeps y --backtrack=300  world
again

installing starts 1 of 3xx but short time after the first packages where installed
it gives one error after another

so i think it installs about 10 packages max

so i did a reboot , and NO the system comes up in the boot msg usb hub detected and get stuck
i can login as root BUT no command like

Code: Select all

 ls 
or anything else is found

NEXT
i rebooted from livecd
OK
connected over ssh with my laptop and copied all from log on a usbstick

Code: Select all

cp -R /mnt/gentoo/var/log  /mnt/stick/var
so emerge.log says

Code: Select all

1709128673: Started emerge on: Feb 28, 2024 14:57:53
1709128673:  *** emerge --verbose-conflicts --autounmask-write --keep-going --regex-search-auto=y --sync
1709128673:  === sync
1709128674: >>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
1709128675: >>> Starting rsync with rsync://81.91.253.252/gentoo-portage
1709128728: === Sync completed for gentoo
1709128728: >>> Syncing repository 'science' into '/var/db/repos/science'...
1709128729: === Sync completed for science
1709128729: >>> Syncing repository 'audio-overlay' into '/var/db/repos/audio-overlay'...
1709128729: === Sync completed for audio-overlay
1709128730:  *** terminating.
1709128775: Started emerge on: Feb 28, 2024 14:59:34
1709128775:  *** emerge --verbose-conflicts --newuse --tree --update --ask --autounmask-write --backtrack=300 --deep --keep-going --with-bdeps=y --regex-search-auto=y --verbose world
1709128832:  *** terminating.
1709129144: Started emerge on: Feb 28, 2024 15:05:44
1709129144:  *** emerge --verbose-conflicts --newuse --tree --update --ask --autounmask-write --backtrack=300 --deep --keep-going --with-bdeps=y --regex-search-auto=y --verbose world
1709129919:  >>> emerge (1 of 350) sys-kernel/linux-headers-6.6 to /
1709129919:  === (1 of 350) Cleaning (sys-kernel/linux-headers-6.6::/var/db/repos/gentoo/sys-kernel/linux-headers/linux-headers-6.6.ebuild)
1709129919:  === (1 of 350) Compiling/Merging (sys-kernel/linux-headers-6.6::/var/db/repos/gentoo/sys-kernel/linux-headers/linux-headers-6.6.ebuild)
1709129929:  === (1 of 350) Merging (sys-kernel/linux-headers-6.6::/var/db/repos/gentoo/sys-kernel/linux-headers/linux-headers-6.6.ebuild)
1709129931:  >>> AUTOCLEAN: sys-kernel/linux-headers:0
1709129931:  === Unmerging... (sys-kernel/linux-headers-6.1)
1709129931:  >>> unmerge success: sys-kernel/linux-headers-6.1
1709129933:  === (1 of 350) Post-Build Cleaning (sys-kernel/linux-headers-6.6::/var/db/repos/gentoo/sys-kernel/linux-headers/linux-headers-6.6.ebuild)
1709129933:  ::: completed emerge (1 of 350) sys-kernel/linux-headers-6.6 to /
1709129934:  >>> emerge (2 of 350) sys-libs/glibc-2.38-r10 to /
1709129934:  === (2 of 350) Cleaning (sys-libs/glibc-2.38-r10::/var/db/repos/gentoo/sys-libs/glibc/glibc-2.38-r10.ebuild)
1709129934:  === (2 of 350) Compiling/Merging (sys-libs/glibc-2.38-r10::/var/db/repos/gentoo/sys-libs/glibc/glibc-2.38-r10.ebuild)
1709130083:  === (2 of 350) Merging (sys-libs/glibc-2.38-r10::/var/db/repos/gentoo/sys-libs/glibc/glibc-2.38-r10.ebuild)
1709130085:  >>> AUTOCLEAN: sys-libs/glibc:2.2
1709130085:  === Unmerging... (sys-libs/glibc-2.38-r9)
1709130086:  >>> unmerge success: sys-libs/glibc-2.38-r9
1709130089:  === (2 of 350) Post-Build Cleaning (sys-libs/glibc-2.38-r10::/var/db/repos/gentoo/sys-libs/glibc/glibc-2.38-r10.ebuild)
1709130089:  ::: completed emerge (2 of 350) sys-libs/glibc-2.38-r10 to /
1709130089:  >>> emerge (3 of 350) dev-libs/libffi-3.4.4-r3 to /
1709130089:  === (3 of 350) Cleaning (dev-libs/libffi-3.4.4-r3::/var/db/repos/gentoo/dev-libs/libffi/libffi-3.4.4-r3.ebuild)
1709130089:  === (3 of 350) Compiling/Merging (dev-libs/libffi-3.4.4-r3::/var/db/repos/gentoo/dev-libs/libffi/libffi-3.4.4-r3.ebuild)
1709130094:  === (3 of 350) Merging (dev-libs/libffi-3.4.4-r3::/var/db/repos/gentoo/dev-libs/libffi/libffi-3.4.4-r3.ebuild)
1709130095:  >>> AUTOCLEAN: dev-libs/libffi:0
1709130095:  === Unmerging... (dev-libs/libffi-3.4.4-r2)
1709130096:  >>> unmerge success: dev-libs/libffi-3.4.4-r2
1709130097:  === (3 of 350) Post-Build Cleaning (dev-libs/libffi-3.4.4-r3::/var/db/repos/gentoo/dev-libs/libffi/libffi-3.4.4-r3.ebuild)
1709130097:  ::: completed emerge (3 of 350) dev-libs/libffi-3.4.4-r3 to /
1709130097:  >>> emerge (4 of 350) sys-apps/baselayout-2.14-r2 to /
1709130097:  === (4 of 350) Cleaning (sys-apps/baselayout-2.14-r2::/var/db/repos/gentoo/sys-apps/baselayout/baselayout-2.14-r2.ebuild)
1709130097:  === (4 of 350) Compiling/Merging (sys-apps/baselayout-2.14-r2::/var/db/repos/gentoo/sys-apps/baselayout/baselayout-2.14-r2.ebuild)
1709130099:  === (4 of 350) Merging (sys-apps/baselayout-2.14-r2::/var/db/repos/gentoo/sys-apps/baselayout/baselayout-2.14-r2.ebuild)
1709130100:  >>> AUTOCLEAN: sys-apps/baselayout:0
1709130100:  === Unmerging... (sys-apps/baselayout-2.14-r1)
1709130101:  >>> unmerge success: sys-apps/baselayout-2.14-r1
1709130102:  === (4 of 350) Post-Build Cleaning (sys-apps/baselayout-2.14-r2::/var/db/repos/gentoo/sys-apps/baselayout/baselayout-2.14-r2.ebuild)
1709130102:  ::: completed emerge (4 of 350) sys-apps/baselayout-2.14-r2 to /
1709130102:  >>> emerge (5 of 350) app-misc/mime-types-2.1.54 to /
1709130102:  === (5 of 350) Cleaning (app-misc/mime-types-2.1.54::/var/db/repos/gentoo/app-misc/mime-types/mime-types-2.1.54.ebuild)
1709130126:  *** Finished. Cleaning up...
1709130126:  *** exiting unsuccessfully with status '1'.
1709130126:  *** terminating.
1709130138: Started emerge on: Feb 28, 2024 15:22:17
1709130138:  *** emerge --verbose-conflicts --newuse --tree --update --ask --autounmask-write --backtrack=300 --deep --keep-going --with-bdeps=y --regex-search-auto=y --verbose world
1709130234:  *** Finished. Cleaning up...
1709130234:  *** exiting unsuccessfully with status '1'.
1709130234:  *** terminating.
1709130739: Started emerge on: Feb 28, 2024 15:32:18
1709130739:  *** emerge --verbose-conflicts --newuse --tree --update --ask --autounmask-write --backtrack=300 --deep --keep-going --with-bdeps=y --regex-search-auto=y --verbose world
1709130844:  *** Finished. Cleaning up...
1709130845:  *** exiting unsuccessfully with status '1'.
1709130845:  *** terminating.
1709130855: Started emerge on: Feb 28, 2024 15:34:15
1709130855:  *** emerge --verbose-conflicts --autounmask-write --keep-going --regex-search-auto=y lightdm
1709130857:  >>> emerge (1 of 1) x11-misc/lightdm-1.32.0-r2 to /
1709130857:  === (1 of 1) Cleaning (x11-misc/lightdm-1.32.0-r2::/var/db/repos/gentoo/x11-misc/lightdm/lightdm-1.32.0-r2.ebuild)
1709130857:  *** Finished. Cleaning up...
1709130857:  *** exiting unsuccessfully with status '1'.
1709130857:  *** terminating.
sys-apps/baselayout- ... 1709130126: *** exiting unsuccessfully with status '1'.

is there a way to repair this problem ?
Last edited by artbody on Wed Feb 28, 2024 8:27 pm, edited 2 times in total.
Never give up
WM : E16 the true enlightenment
achim
Top
artbody
Guru
Guru
User avatar
Posts: 494
Joined: Fri Sep 15, 2006 7:55 pm
Location: LB
Contact:
Contact artbody
Website

  • Quote

Post by artbody » Wed Feb 28, 2024 6:35 pm

okay i did now a chroot
and tried to install baselayout BUT

Code: Select all

livecd / # emerge -av  sys-apps/baselayout

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.74 s (backtrack: 0/20).

[ebuild   R    ] sys-apps/baselayout-2.14-r2::gentoo  USE="-build (-split-usr)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/baselayout-2.14-r2::gentoo
openpty failed: 'out of pty devices'
/usr/bin/env: ‘bash’: No such file or directory
 * The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
 * does not exist: '/var/tmp/portage/sys-apps/baselayout-2.14-r2'

>>> Failed to emerge sys-apps/baselayout-2.14-r2

 * Messages for package sys-apps/baselayout-2.14-r2:

 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (sys-apps/baselayout-2.14-r2:0/0::gentoo, ebuild scheduled for merge)
 * 
Never give up
WM : E16 the true enlightenment
achim
Top
artbody
Guru
Guru
User avatar
Posts: 494
Joined: Fri Sep 15, 2006 7:55 pm
Location: LB
Contact:
Contact artbody
Website

  • Quote

Post by artbody » Wed Feb 28, 2024 6:57 pm

what a mess
in earlier times i selected another profile and after a world update all is okay an now the whole thing is a mess

Code: Select all

livecd / # emerge --ask sys-apps/merge-usr

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.34 s (backtrack: 0/20).

[ebuild  N     ] sys-apps/merge-usr-6  PYTHON_SINGLE_TARGET="python3_11 -python3_10" 

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/merge-usr-6::gentoo
/usr/bin/env: ‘bash’: No such file or directory
 * The ebuild phase 'die_hooks' has been aborted since PORTAGE_BUILDDIR
 * does not exist: '/var/tmp/portage/sys-apps/merge-usr-6'

>>> Failed to emerge sys-apps/merge-usr-6

 * Messages for package sys-apps/merge-usr-6:

 * 
 * The following package has failed to build, install, or execute postinst:
 * 
 *  (sys-apps/merge-usr-6:0/0::gentoo, ebuild scheduled for merge)
 * 
Never give up
WM : E16 the true enlightenment
achim
Top
artbody
Guru
Guru
User avatar
Posts: 494
Joined: Fri Sep 15, 2006 7:55 pm
Location: LB
Contact:
Contact artbody
Website

  • Quote

Post by artbody » Wed Feb 28, 2024 7:00 pm

one idea was here
viewtopic-p-8777274.html?sid=9c7dea8eb7 ... 0030bcf3de
brings me to
https://wiki.gentoo.org/wiki/Merge-usr

SO WHY could portage start an update like this

without BIG WARNING

so how could i reanimate my system
any ideas?
Never give up
WM : E16 the true enlightenment
achim
Top
artbody
Guru
Guru
User avatar
Posts: 494
Joined: Fri Sep 15, 2006 7:55 pm
Location: LB
Contact:
Contact artbody
Website

  • Quote

Post by artbody » Wed Feb 28, 2024 7:33 pm

one step further
Manual Migration

Code: Select all

livecd ~ # ./merge-usr
INFO: Migrating files from '/bin' to '/usr/bin'
INFO: Skipping symlink '/bin/awk'; '/usr/bin/awk' already exists
INFO: Replacing '/bin' with a symlink to 'usr/bin'
INFO: Migrating files from '/sbin' to '/usr/bin'
INFO: Skipping symlink '/sbin/ss'; '/usr/bin/ss' already exists
INFO: Replacing '/sbin' with a symlink to 'usr/bin'
INFO: Migrating files from '/usr/sbin' to '/usr/bin'
INFO: Skipping symlink '/usr/sbin/apxs'; '/usr/bin/apxs' already exists
INFO: Replacing '/usr/sbin' with a symlink to 'bin'
INFO: Migrating files from '/lib' to '/usr/lib'
INFO: Skipping symlink '/lib/libcrypt.so.2'; '/usr/lib/libcrypt.so.2' already exists
INFO: Replacing '/lib' with a symlink to 'usr/lib'
INFO: Migrating files from '/lib64' to '/usr/lib64'
INFO: Skipping symlink '/lib64/libcrypt.so.2'; '/usr/lib64/libcrypt.so.2' already exists
INFO: Replacing '/lib64' with a symlink to 'usr/lib64'

Code: Select all

livecd / # emerge -av  sys-apps/baselayout

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 1.34 s (backtrack: 0/20).

[ebuild   R    ] sys-apps/baselayout-2.14-r2::gentoo  USE="-build (-split-usr)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/baselayout-2.14-r2::gentoo
 * baselayout-2.14.tar.bz2 BLAKE2B SHA512 size ;-) ...                                                                                                       [ ok ]
>>> Unpacking source...
>>> Unpacking baselayout-2.14.tar.bz2 to /var/tmp/portage/sys-apps/baselayout-2.14-r2/work
>>> Source unpacked in /var/tmp/portage/sys-apps/baselayout-2.14-r2/work
>>> Preparing source in /var/tmp/portage/sys-apps/baselayout-2.14-r2/work/baselayout-2.14 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-apps/baselayout-2.14-r2/work/baselayout-2.14 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-apps/baselayout-2.14-r2/work/baselayout-2.14 ...
make -j32 
make: Nothing to be done for 'all'.
>>> Source compiled.
>>> Test phase [not enabled]: sys-apps/baselayout-2.14-r2

>>> Install sys-apps/baselayout-2.14-r2 into /var/tmp/portage/sys-apps/baselayout-2.14-r2/image
....
>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
 * You should reboot now to get /run mounted with tmpfs!
>>> sys-apps/baselayout-2.14-r2 merged.
>>> Regenerating /etc/ld.so.cache...

>>> Completed (1 of 1) sys-apps/baselayout-2.14-r2::gentoo

 * Messages for package sys-apps/baselayout-2.14-r2:

 * You should reboot now to get /run mounted with tmpfs!

 * GNU info directory index is up-to-date.
Never give up
WM : E16 the true enlightenment
achim
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy