ghostbsd / issues

Issue tracker for GhostBSD
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

devtools install causes PAM error #167

Closed AZPConsultants closed 3 months ago

AZPConsultants commented 3 months ago

Version

24.04.2

What desktop?

Official MATE

Explain the issue and what happens

Installing os-generic-userland-devtools on a fresh GhostBSD after pgk upgrade causes PAM error and prevents any further authentication.

Explain how to reproduce the bug?

sudo pkg install os-generic-userland-devtools

What is the Expected behavior (if applicable)

No response

Additional context (if applicable)

Conflicts with the existing packages have been found.
One more solver iteration is needed to resolve them.
The following 6 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
    GhostBSD-clang: 24.04.2
    GhostBSD-lld: 24.04.2
    GhostBSD-lldb: 24.04.2

New packages to be INSTALLED:
    os-generic-userland-devtools: 24.04.2 [GhostBSD]

Number of packages to be removed: 3
Number of packages to be installed: 1

.
.
.
Fetching GhostBSD-utilities-24.04.2.pkg: 100%   12 MiB  12.2MB/s    00:01    
[1/6] Deinstalling GhostBSD-lldb-24.04.2...
[1/6] Deleting files for GhostBSD-lldb-24.04.2: 100%
[2/6] Deinstalling GhostBSD-lld-24.04.2...
[2/6] Deleting files for GhostBSD-lld-24.04.2: 100%
[3/6] Deinstalling GhostBSD-clang-24.04.2...
[3/6] Deleting files for GhostBSD-clang-24.04.2: 100%
[4/6] Deinstalling GhostBSD-utilities-24.04.2...
[4/6] Deleting files for GhostBSD-utilities-24.04.2: 100%
[5/6] Installing os-generic-userland-devtools-24.04.2...
[5/6] Extracting os-generic-userland-devtools-24.04.2: 100%
[5/6] Installing GhostBSD-utilities-24.04.2...
pkg: GhostBSD-utilities-24.04.2 conflicts with os-generic-userland-devtools-24.04.2 (installs files into the same place).  Problematic file: /usr/bin/ldd
-ghostbsd ~ [3]> sudo -i
sudo: unable to initialize PAM: Exec format error
ericbsd commented 3 months ago

You are deleting the OS replated packages.

ericbsd commented 3 months ago

I will use this ticket to remove os ports from ghostbsd-ports to prevent this on 24.07.1.

AZPConsultants commented 3 months ago

I tried to build c++ code, but libc++ files are missing from base install. This workaround was suggested in the FAQ. What shall I do to compile c++ on GhostBSD? Thanks.

ericbsd commented 3 months ago

The FAQ is not up to speed with the latest changes that happened last week.

ericbsd commented 3 months ago

You should not need to add devtool after upgrading to PKGBASE.

ericbsd commented 3 months ago

Was that a fresh install of 24.04.2?

AZPConsultants commented 3 months ago

Yes, fresh install and pkg upgrade. Installing GhostBSD-clibs-dev solved compilation, but the linker still misses libraries. This also prevents building ports.

ericbsd commented 3 months ago

Thanks for reporting this. I will have a deeper look into it.

ericbsd commented 3 months ago

OK, There must be other GhostBSD-*-dev packages to install.

I got the full list of dev packages.

ericbsd@ericbsed-ghostbsd-pc /e/pkg> sudo pkg search -g 'GhostBSD*-dev-*'
GhostBSD-blocklist-dev-24.04.2 Blocklist Utilities (Development Files)
GhostBSD-blocklist-dev-lib32-24.04.2 blocklist-dev package (32-bit Libraries)
GhostBSD-bluetooth-dev-24.04.2 Bluetooth Utilities (Development Files)
GhostBSD-bluetooth-dev-lib32-24.04.2 bluetooth-dev package (32-bit Libraries)
GhostBSD-bootloader-dev-24.04.2 Bootloader (Development Files)
GhostBSD-bsnmp-dev-24.04.2     BSNMP Utilities (Development Files)
GhostBSD-bsnmp-dev-lib32-24.04.2 bsnmp-dev package (32-bit Libraries)
GhostBSD-clang-dev-24.04.2     Clang Utilities (Development Files)
GhostBSD-clibs-dev-24.04.2     Core C Libraries (Development Files)
GhostBSD-clibs-dev-lib32-24.04.2 clibs-dev package (32-bit Libraries)
GhostBSD-devmatch-dev-24.04.2  Devmatch Utility (Development Files)
GhostBSD-devmatch-dev-lib32-24.04.2 devmatch-dev package (32-bit Libraries)
GhostBSD-dpv-dev-24.04.2       dpv package (Development Files)
GhostBSD-dpv-dev-lib32-24.04.2 dpv-dev package (32-bit Libraries)
GhostBSD-dtrace-dev-24.04.2    Dtrace Utilities (Development Files)
GhostBSD-dtrace-dev-lib32-24.04.2 dtrace-dev package (32-bit Libraries)
GhostBSD-efi-tools-dev-24.04.2 UEFI Utilities (Development Files)
GhostBSD-efi-tools-dev-lib32-24.04.2 efi-tools-dev package (32-bit Libraries)
GhostBSD-fetch-dev-24.04.2     Fetch Utility (Development Files)
GhostBSD-fetch-dev-lib32-24.04.2 fetch-dev package (32-bit Libraries)
GhostBSD-kerberos-lib-dev-24.04.2 Kerberos Libraries (Development Files)
GhostBSD-kerberos-lib-dev-lib32-24.04.2 kerberos-lib-dev package (32-bit Libraries)
GhostBSD-lib9p-dev-24.04.2     lib9p package (Development Files)
GhostBSD-lib9p-dev-lib32-24.04.2 lib9p-dev package (32-bit Libraries)
GhostBSD-libarchive-dev-24.04.2 libarchive package (Development Files)
GhostBSD-libarchive-dev-lib32-24.04.2 libarchive-dev package (32-bit Libraries)
GhostBSD-libbegemot-dev-24.04.2 libbegemot package (Development Files)
GhostBSD-libbegemot-dev-lib32-24.04.2 libbegemot-dev package (32-bit Libraries)
GhostBSD-libblocksruntime-dev-24.04.2 libblocksruntime package (Development Files)
GhostBSD-libblocksruntime-dev-lib32-24.04.2 libblocksruntime-dev package (32-bit Libraries)
GhostBSD-libbsdstat-dev-24.04.2 libbsdstat package (Development Files)
GhostBSD-libbsdstat-dev-lib32-24.04.2 libbsdstat-dev package (32-bit Libraries)
GhostBSD-libbsm-dev-24.04.2    libbsm package (Development Files)
GhostBSD-libbsm-dev-lib32-24.04.2 libbsm-dev package (32-bit Libraries)
GhostBSD-libbz2-dev-24.04.2    libbz2 package (Development Files)
GhostBSD-libbz2-dev-lib32-24.04.2 libbz2-dev package (32-bit Libraries)
GhostBSD-libcasper-dev-24.04.2 libcasper package (Development Files)
GhostBSD-libcasper-dev-lib32-24.04.2 libcasper-dev package (32-bit Libraries)
GhostBSD-libcompat-dev-24.04.2 libcompat package (Development Files)
GhostBSD-libcompat-dev-lib32-24.04.2 libcompat-dev package (32-bit Libraries)
GhostBSD-libcompiler_rt-dev-24.04.2 libcompiler_rt package (Development Files)
GhostBSD-libcompiler_rt-dev-lib32-24.04.2 libcompiler_rt-dev package (32-bit Libraries)
GhostBSD-libcuse-dev-24.04.2   libcuse package (Development Files)
GhostBSD-libcuse-dev-lib32-24.04.2 libcuse-dev package (32-bit Libraries)
GhostBSD-libdwarf-dev-24.04.2  libdwarf package (Development Files)
GhostBSD-libdwarf-dev-lib32-24.04.2 libdwarf-dev package (32-bit Libraries)
GhostBSD-libevent1-dev-24.04.2 libevent1 package (Development Files)
GhostBSD-libevent1-dev-lib32-24.04.2 libevent1-dev package (32-bit Libraries)
GhostBSD-libexecinfo-dev-24.04.2 libexecinfo package (Development Files)
GhostBSD-libexecinfo-dev-lib32-24.04.2 libexecinfo-dev package (32-bit Libraries)
GhostBSD-libipt-dev-24.04.2    libipt package (Development Files)
GhostBSD-libldns-dev-24.04.2   libldns package (Development Files)
GhostBSD-libldns-dev-lib32-24.04.2 libldns-dev package (32-bit Libraries)
GhostBSD-liblzma-dev-24.04.2   liblzma package (Development Files)
GhostBSD-liblzma-dev-lib32-24.04.2 liblzma-dev package (32-bit Libraries)
GhostBSD-libmagic-dev-24.04.2  libmagic package (Development Files)
GhostBSD-libmagic-dev-lib32-24.04.2 libmagic-dev package (32-bit Libraries)
GhostBSD-libpathconv-dev-24.04.2 libpathconv package (Development Files)
GhostBSD-libpathconv-dev-lib32-24.04.2 libpathconv-dev package (32-bit Libraries)
GhostBSD-librpcsec_gss-dev-24.04.2 librpcsec_gss package (Development Files)
GhostBSD-librpcsec_gss-dev-lib32-24.04.2 librpcsec_gss-dev package (32-bit Libraries)
GhostBSD-librss-dev-24.04.2    librss package (Development Files)
GhostBSD-librss-dev-lib32-24.04.2 librss-dev package (32-bit Libraries)
GhostBSD-libsdp-dev-24.04.2    libsdp package (Development Files)
GhostBSD-libsdp-dev-lib32-24.04.2 libsdp-dev package (32-bit Libraries)
GhostBSD-libsqlite3-dev-24.04.2 libsqlite3 package (Development Files)
GhostBSD-libsqlite3-dev-lib32-24.04.2 libsqlite3-dev package (32-bit Libraries)
GhostBSD-libstdbuf-dev-24.04.2 libstdbuf package (Development Files)
GhostBSD-libstdbuf-dev-lib32-24.04.2 libstdbuf-dev package (32-bit Libraries)
GhostBSD-libstdthreads-dev-24.04.2 libstdthreads package (Development Files)
GhostBSD-libstdthreads-dev-lib32-24.04.2 libstdthreads-dev package (32-bit Libraries)
GhostBSD-libthread_db-dev-24.04.2 libthread_db package (Development Files)
GhostBSD-libthread_db-dev-lib32-24.04.2 libthread_db-dev package (32-bit Libraries)
GhostBSD-libucl-dev-24.04.2    libucl package (Development Files)
GhostBSD-libucl-dev-lib32-24.04.2 libucl-dev package (32-bit Libraries)
GhostBSD-libvgl-dev-24.04.2    libvgl package (Development Files)
GhostBSD-libvgl-dev-lib32-24.04.2 libvgl-dev package (32-bit Libraries)
GhostBSD-libvmmapi-dev-24.04.2 libvmmapi package (Development Files)
GhostBSD-liby-dev-24.04.2      liby package (Development Files)
GhostBSD-liby-dev-lib32-24.04.2 liby-dev package (32-bit Libraries)
GhostBSD-natd-dev-24.04.2      natd package (Development Files)
GhostBSD-natd-dev-lib32-24.04.2 natd-dev package (32-bit Libraries)
GhostBSD-netmap-dev-24.04.2    Netmap Library and Utilities (Development Files)
GhostBSD-netmap-dev-lib32-24.04.2 netmap-dev package (32-bit Libraries)
GhostBSD-openssl-lib-dev-24.04.2 OpenSSL Libraries (Development Files)
GhostBSD-openssl-lib-dev-lib32-24.04.2 openssl-lib-dev package (32-bit Libraries)
GhostBSD-pf-dev-24.04.2        pf package (Development Files)
GhostBSD-runtime-dev-24.04.2   FreeBSD Base System (Development Files)
GhostBSD-runtime-dev-lib32-24.04.2 runtime-dev package (32-bit Libraries)
GhostBSD-sendmail-dev-24.04.2  Sendmail Utilities (Development Files)
GhostBSD-sendmail-dev-lib32-24.04.2 sendmail-dev package (32-bit Libraries)
GhostBSD-smbutils-dev-24.04.2  SMB Utilities (Development Files)
GhostBSD-smbutils-dev-lib32-24.04.2 smbutils-dev package (32-bit Libraries)
GhostBSD-ssh-dev-24.04.2       Secure Shell Utilities (Development Files)
GhostBSD-ssh-dev-lib32-24.04.2 ssh-dev package (32-bit Libraries)
GhostBSD-tcpd-dev-24.04.2      TCP Wrapper utilities (Development Files)
GhostBSD-tcpd-dev-lib32-24.04.2 tcpd-dev package (32-bit Libraries)
GhostBSD-tests-dev-24.04.2     Test Suite (Development Files)
GhostBSD-ufs-dev-24.04.2       UFS Libraries and Utilities (Development Files)
GhostBSD-ufs-dev-lib32-24.04.2 ufs-dev package (32-bit Libraries)
GhostBSD-unbound-dev-24.04.2   Unbound DNS Resolver (Development Files)
GhostBSD-unbound-dev-lib32-24.04.2 unbound-dev package (32-bit Libraries)
GhostBSD-utilities-dev-24.04.2 Non-vital programs and libraries (Development Files)
GhostBSD-utilities-dev-lib32-24.04.2 utilities-dev package (32-bit Libraries)
GhostBSD-zfs-dev-24.04.2       ZFS Libraries and Utilities (Development Files)
GhostBSD-zfs-dev-lib32-24.04.2 zfs-dev package (32-bit Libraries)
ericbsd commented 3 months ago

It is possible that GhostBSD-runtime-dev, GhostBSD-clang-dev and GhostBSD-utilities-dev.

If not, sudo pkg install -g 'GhostBSD*-dev-*' will install all the dev packages.

ericbsd commented 3 months ago

I have tested it, and depending on what you are doing, many packages are needed. To install everything, it is better to do sudo pkg install -g 'GhostBSD*-dev—*'.

ericbsd commented 3 months ago

I updated the FAQ. Thanks for reporting this.