View previous topic :: View next topic |
Author |
Message |
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Fri Dec 06, 2024 11:32 am Post subject: can you say my system is in broken state and how to update. |
|
|
Hi I am Rupesh from India and I brought a new system with AMD Ryzen zen3 5500GT and Asus prime b450 motherboard. I installed Gentoo Linux two months back and updated the system upto three times. At present the system is not working properly.
At first I have installed gentoo linux as specified in Gentoo handbook and the instructions provided by you. After that I have updated the system..
The update process is as follows.
Code: |
sudo emerge --sync
sudo emerge --ask --changed-use --deep @world
|
I followed the above two commands upto two times to update my system.
Yesterday I have seen Gentoo upgrade page and found two new commands to update my system and they are asking follows.
Code: |
sudo emaint --auto sync
sudo emerge --ask --verbose --update --deep --newuse @world
|
This is the first time I used these commands.
The update process took about four hours and still not completed and so I aborted the process.
Intersting point is previously I have not installed any packages related to KDE desktop environment or plasma but unfortunately during the above update process downloaded kde packages and started compiling them.
kde frame works is among them.
Today I booted successfully into my system and issued the same update commands as
Code: |
sudo emaint --auto sync
sudo emerge --ask --verbose --update --deep --newuse @world
|
This time I got message as all packages are upto date.
Yesterday when I ran update gcc was updated from version 13.2 to 14.2. unfortunately gcc version 13.2 was not deleted.
I tried to compile ffmpeg source code and I found that gcc 13.2 version is being used instead of 14.2 version.
I am providing the output of ls -l gcc* below
Code: |
build@localhost /usr/bin $ ls -l gcc*
lrwxrwxrwx 1 root root 39 Dec 3 20:19 gcc -> /usr/x86_64-pc-linux-gnu/gcc-bin/13/gcc
lrwxrwxrwx 1 root root 59 Oct 20 21:57 gcc-13 -> /usr/x86_64-pc-linux-gnu/gcc-bin/13/x86_64-pc-linux-gnu-gcc
lrwxrwxrwx 1 root root 59 Dec 3 20:19 gcc-14 -> /usr/x86_64-pc-linux-gnu/gcc-bin/14/x86_64-pc-linux-gnu-gcc
lrwxrwxrwx 1 root root 42 Dec 3 20:19 gcc-ar -> /usr/x86_64-pc-linux-gnu/gcc-bin/13/gcc-ar
-rwxr-xr-x 1 root root 34985 Mar 13 2024 gcc-config
lrwxrwxrwx 1 root root 42 Dec 3 20:19 gcc-nm -> /usr/x86_64-pc-linux-gnu/gcc-bin/13/gcc-nm
lrwxrwxrwx 1 root root 46 Dec 3 20:19 gcc-ranlib -> /usr/x86_64-pc-linux-gnu/gcc-bin/13/gcc-ranlib
-rwxr-xr-x 1 root root 2216 Oct 26 13:39 gccmakedep
build@localhost /usr/bin $
|
I think that this time new packages with source code are downloaded and compiled and after that installed into their directories but unfortunately old packages are not removed.
At present my system is not working properly for example
1) previously I mounted other exFAT partition within gui file manager but now I can't.
2) when I select shutdown option in logout menu the system is not getting power off instead it is getting logout.
I am providing the output of emerge search related to packages gcc, libfm, udisks, pcmanfm below.
Code: |
sys-devel/gcc
Latest version available: 14.2.1_p20241116
Latest version installed: 14.2.1_p20241116
Size of files: 86137 KiB
Homepage: https://gcc.gnu.org/
Description: The GNU Compiler Collection
License: GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+
|
Code: |
x11-libs/libfm [ Masked ]
Latest version available: 1.3.2-r1
Latest version installed: [ Not Installed ]
Size of files: 1265 KiB
Homepage: https://wiki.lxde.org/en/PCManFM
Description: Library for file management
License: GPL-2
x11-libs/libfm-extra
Latest version available: 1.3.2
Latest version installed: [ Not Installed ]
Size of files: 1265 KiB
Homepage: https://wiki.lxde.org/en/PCManFM
Description: Library for file management
License: GPL-2
x11-misc/pcmanfm [ Masked ]
Latest version available: 1.3.2-r2
Latest version installed: [ Not Installed ]
Size of files: 415 KiB
Homepage: https://github.com/lxde/pcmanfm
Description: Fast lightweight tabbed filemanager
License: GPL-2
sys-fs/udisks
Latest version available: 2.10.1-r1
Latest version installed: 2.10.1-r1
Size of files: 1852 KiB
Homepage: https://www.freedesktop.org/wiki/Software/udisks
Description: Daemon providing interfaces to work with storage devices
License: LGPL-2+ GPL-2+
|
I am providing the output of emerge information below
Code: |
build@localhost ~ $ emerge --info
Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-13, glibc-2.40-r5, 6.12.1-x86_64 x86_64)
=================================================================
System uname: Linux-6.12.1-x86_64-x86_64-AMD_Ryzen_5_5500GT_with_Radeon_Graphics-with-glibc2.40
KiB Mem: 15658180 total, 13904072 free
KiB Swap: 3276796 total, 3276796 free
Timestamp of repository gentoo: Wed, 04 Dec 2024 13:00:00 +0000
Head commit of repository gentoo: 2cddc72928f6dc8c1d1397d336fb99fd00e33818
sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.30.6::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.12.7_p1::gentoo, 3.13.0::gentoo
dev-lang/rust-bin: 1.81.0-r100::gentoo
sys-apps/baselayout: 2.17::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-apps/systemd: 256.7::gentoo
sys-devel/binutils: 2.42-r2::gentoo, 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/clang: 18.1.8::gentoo
sys-devel/gcc: 13.3.1_p20240614::gentoo, 14.2.1_p20241116::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 18.1.8::gentoo
sys-devel/llvm: 18.1.8-r1::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r5::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=znver3 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=znver3 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver3 -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.nxtgen.com/gentoo-mirror/gentoo-source/ http://mirrors.nxtgen.com/gentoo-mirror/gentoo-source/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="--jobs 10 --load-average 9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet classic contrib crypt cups dbus dri dts dvd dvdr encode exif extras flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qml qt5 qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
build@localhost ~ $
|
Finally I am asking you whether my system is in broken state or not. What is the preferred method to update my system among the following.
Code: |
sudo emerge --sync
sudo emerge --ask --changed-use --deep @world
|
Code: |
sudo emaint --auto sync
sudo emerge --ask --verbose --update --deep --newuse @world
|
Kindly try to suggest which is the preferred method to update my system and is my system is in broken state or not. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1820 Location: Germany
|
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Fri Dec 06, 2024 12:24 pm Post subject: |
|
|
I think that my system is broken state due to the following
1) my system has two versions of gcc instead of one.
2) I am unable to mount exFAT file system directly through gui file manager.
At the beginning of Gentoo Linux installation I mean three months back I used kde but not now. I reinstalled my gentoo Linux again by formatting.
Which is the preferred method for updating repository among the following
emerge --sync
emaint auto sync
Which is the preferred method for updating my system among the following.
sudo emerge --ask --changed-use --deep @world
sudo emerge --ask --verbose --update --deep --newuse @world _________________ Regards,
Rupesh. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22931
|
Posted: Fri Dec 06, 2024 12:58 pm Post subject: |
|
|
Gentoo systems can easily have multiple versions of gcc installed, and this is common when users do not actively remove outdated versions. Multiple gcc versions is not necessarily an error.
GUI file managers are optional, and systems can work fine without one. Failure to use a GUI file manager is not an indication that the underlying system is broken.
If you need help, please show us the commands that produced the suspect output, and the full output they produced. For the case of the GUI file manager, is it the case that command-line driven mounting is also broken? |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5280 Location: Bavaria
|
Posted: Fri Dec 06, 2024 1:50 pm Post subject: |
|
|
rupeshforu3,
Let me add a little more detail to the two posts by @Banana and @Hu:
Yes, instead of “sudo” you should switch with "su -" before updating the system. All you need to do is “emerge --ask --update --changed-use -- verbose --deep @world”. Instead of --ask, “pretend” (-p) can also be used. I always recommend checking BEFOREHAND what the world-update does with: “emerge -uUDvp @world”.
What is the difference between -U and -N ? When our developers add new use-flags for packages, you may not need them at all. Just do a world-update with -U and THEN see what an “emerge -uNDvp @world” WOULD do. In my case - at the moment - these are only python3-13-use-flags that are not active. It is not necessary to update these packages ... BECAUSE nothing would change (so it is pointless to do so).
AFTER a world-update you should ALWAYS do an “emerge -cp” ... and check what portage now wants to remove. After your check, also run it with “emerge -c” ... This is exactly what you have not yet done and therefore have several GCC versions. This "emerge -c" also automatically switches to the new version - just try it out _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Fri Dec 06, 2024 3:38 pm Post subject: |
|
|
Installed from the beginning through Fedora 41 kde live.
This time I added mount, fuse to global use variable in make.conf.
I hope that everything will work fine. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Fri Dec 06, 2024 4:01 pm Post subject: |
|
|
Upto now I have used a number of Linux distributions and all of them suggested not to use root account directly because it may cause the system broken state.
For the first time you are asking to use root account directly. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20552
|
Posted: Fri Dec 06, 2024 4:59 pm Post subject: |
|
|
rupeshforu3 wrote: | Upto now I have used a number of Linux distributions and all of them suggested not to use root account directly because it may cause the system broken state.
For the first time you are asking to use root account directly. | You should not use root as your primary user, to run a desktop environment or a browser. For one time commands, sudo (or doas) can be a good tool.
When updating your system, if something breaks, you may no longer have the ability to use sudo or su to gain root access. That makes it harder to fix what broke. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|