'freebsd-update fetch install'
which allowed me to do 'freebsd-update upgrade -r 11.0-RELEASE'
and 'freebsd-update install'
'freebsd-update install'
, and got a warning I need to rebuild all contrib software - which I wouldn't know how to do since I'm _ONLY_ using pkg and never even cloned the ports tree. 'freebsd-update install'
I was unable to run pkg anymore:
Shared object "libssl.so.7" not found, required by "pkg"
sudo: error in /usr/local/etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: unable to load /usr/local/libexec/sudo/sudoers.so: Shared object "libpam.so.5" not found, required by "sudoers.so"
sudo: fatal error, unable to load plugins
All went fine without issues, after reboot, did the second'freebsd-update install'
, and got a warning I need to rebuild all contrib software - which I wouldn't know how to do since I'm _ONLY_ using pkg and never even cloned the ports tree.
Should we raise a PR for this? Apparently upgrading today from a 10.x pkg-based system to 11.0 leads to a broken system?
I would say "no", this is a user error. pkg(8) is itself a package and you didn't replace it, nor did you run the pkg-bootstrap program that would replace it.
The fact you have to recite DragonFly BSD documentation shows that as well.
Don't get me wrong.. I like it. Just saying that release notes and the handbook could have that explanation as well. Apparently it's common knowledge, but for me - never having had to upgrade between major versions - it's undocumented. Maybe it'll be my first patch I submit against doc.. ;-)I didn't "have" to. There are 100 ways to skin a cat. I prefer to start from scratch so I wrote a HowTo and I felt that HowTo could help you. It could be considered "overkill" but it's also bullet-proof; it always works.
23.2.3. Performing Major and Minor Version Upgrades
The upgrade is now complete. If this was a major version upgrade, reinstall all ports and packages as described in Section 23.2.3.2, “Upgrading Packages After a Major Version Upgrade”.
pkg
and sudo
are broken. The problems began during a "routine" pkg upgrade
. I had updated from 9.1 to 10.0-RELEASE in August 2014, and have been running the system (and updating) without incident since then. I don't remember all the steps I took when switched over to pkg
, or when I did so, but I believe it was after the update to 10.0.sudo su
/lib/libc.so.7: version FBSD_1.4 required by /usr/local/bin/sudo not found
pkg
/lib/libc.so.7: version FBSD_1.4 required by /usr/local/lib/libpkg.so.3 not found
pkg-static
to upgrade pkg
:pkg-static install -f pkg
# Probably identical, but I also tried:
pkg-static delete -f pkg
pkg
pkg
is still non-functional afterwards (same complaint about libc.so). I've also run:pkg-static upgrade -f
uname -a
FreeBSD citadel 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul 8 06:37:44 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Hi, I cannot do anything anymore on my server because of this, as my only access is by ssh-ing to the account of a sudoer, and sudo doesn't work anymore.
su -
As far as I know this is also true for sudo, so I assumed it is the case.Only if the account is a member of the wheel group.
It's not. Not by default at least. But it can definitely be configured that way, if I recall correctly it's even mentioned as an example in the sudoers file.As far as I know this is also true for sudo,
No this doesn't work. I get:This should still work:
Code:su -
$ su -
su: Sorry.
I would think you can still access it in single user mode ...I think the only thing I can do now is reinstall the server.
I guess you need to rely on what is available in system, and not on what is in ports/pkgs (like sudo)My question is rather how to avoid this problem in the future.
I guess you need to rely on what is available in system, and not on what is in ports/pkgs (like sudo)
May be not ssh to root directly, but setting the user in the wheel group would do. (and usingYou mean the best way to manage a FreeBSD server would be to ssh into the root account ? (I don't have physical access to the machine). This is what people do?
su
).