git clone -b releng/13.0 https://git.freebsd.org/src.git src
Yes. /usr/src exists.Are you sure it's there?
I have the same error under root. This error shows up in the host which uses 13-Current. However,May be a sudo-thing. Is sudo configured to execute your command? And what happens if you're first switching to root ("su -"), and run the "mv" command without sudo directly?
git clone
works in jails on the same host, which use 12.1-Release kernel.Yes, just grab the source that way. You're git's broken so how did you install git, via packages?After installing git and run it, I have following error:
ld-elf.so.1: /usr/local/bin/git: Undefined symbol "regcomp@FBSD_1.6"
Can I fetch the source instead with:
fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.0-RELEASE/src.txz
Just useI have the same error under root. This error shows up in the host which uses 13-Current. However,git clone
works in jails on the same host, which use 12.1-Release kernel.
su
.# ls -al /libexec
total 364
drwxr-xr-x 3 root wheel 7 Jul 24 2020 ./
drwxr-xr-x 22 root wheel 30 Sep 4 2020 ../
-r-xr-xr-x 1 root wheel 118144 Jul 24 2020 ld-elf.so.1*
-r-xr-xr-x 1 root wheel 156584 Jun 26 2020 ld-elf.so.1.old*
-r-xr-xr-x 1 root wheel 108712 Jul 24 2020 ld-elf32.so.1*
-r-xr-xr-x 1 root wheel 130952 Jun 26 2020 ld-elf32.so.1.old*
drwxr-xr-x 2 root wheel 8 Jul 24 2020 resolvconf/
ld-elf.so.1
with ld-elf.so.1.old
but have error:# cp ld-elf.so.1.old ld-elf.so.1
cp: ld-elf.so.1: Operation not permitted
Updating FreeBSD by compiling from source offers several advantages over binary updates.
marez@bsdtrix:/ $ doas mv /usr/src /usr/src-13.0
mv: rename /usr/src to /usr/src-13.0: Operation not supported
# mv /usr/src /usr/src.bak
# git clone --branch releng/10.3 https://git.FreeBSD.org/src.git /usr/src
freebsd-update -r 13.0-RELEASE upgrade
freebsd-update install
This won't work if you're using ZFS. You're trying to rename a ZFS dataset. Just nuke the old data, you really don't need to "save" it.I tried to back up the current src folder but got an error:
sudo mv /usr/src /usr/src.12.1
Password:
mv: rename /usr/src to /usr/src.12.1: Operation not supported
rm -rf /usr/src/* /usr/src/.[^.]*
But...This won't work if you're using ZFS. You're trying to rename a ZFS dataset. Just nuke the old data, you really don't need to "save" it.
rm -rf /usr/src/* /usr/src/.[^.]*
marez@bsdtrix:/usr/home/marez $ su
Password:
root@bsdtrix:/usr/home/marez # cd /usr
root@bsdtrix:/usr # rm -rf src
rm: src: Device busy
root@bsdtrix:/usr # rm -rf src/*
rm: No match.
root@bsdtrix:/usr # rm -rf src/.*
rm: "." and ".." may not be removed
root@bsdtrix:/usr # rm -rf /usr/src/* /usr/src/.[^.]*
rm: No match.
root@bsdtrix:/usr # ls /usr
bin include libdata obj share src-12.2-STABLE
dt lib libexec ports src src-13-0-RELENG
home lib32 local sbin src-12-2-RELENG tests
root@bsdtrix:/usr #
Thx, but it was my first intent, pal...Code:freebsd-update -r 13.0-RELEASE upgrade freebsd-update install
Dig it?root@bsdtrix:/usr # freebsd-update -r 13.0-RELEASE upgrade
src component not installed, skipped
freebsd-update: Cannot upgrade from a version that is not a release
(including alpha, beta and release candidates)
using freebsd-update. Instead, FreeBSD can be directly
upgraded by source or upgraded to a RELEASE/RELENG version
prior to running freebsd-update.
Currently running: 12.2-STABLE
Good, that means it's empty. NowCode:root@bsdtrix:/usr # rm -rf /usr/src/* /usr/src/.[^.]* rm: No match.
git clone -b releng/13.0 https://git.freebsd.org/src.git /usr/src
Good, that means it's empty. Nowgit clone -b releng/13.0 https://git.freebsd.org/src.git /usr/src
marez@bsdtrix:/usr/home/marez $ uname -a
FreeBSD bsdtrix 13.0-RELEASE-p1 FreeBSD 13.0-RELEASE-p1 #1 releng/13.0-n244744-8023e729a52: Mon May 31 13:04:4
6 -03 2021 marez@bsdtrix:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
FreeBSD 13.0 Release source …