No startx after upgrade 9.2 to 10.0

Hello,

I upgraded FreeBSD 9.2 to 10.0 with following https://www.freebsd.org/releases/10.0R/ ... ation.html.
First I did:

Code:
# freebsd-update fetch
# freebsd-update install
And
Code:
# freebsd-update upgrade -r 10.0-RELEASE
# freebsd-update install
# shutdown -r now
Logged in init 3 run-level (did I make a mistake ?), I did twice
Code:
# freebsd-update install
Reboot again, but impossible to boot with startx, I get
Code:
xauth: file /home/jbeziat/.serverauth.1248 does not exist
and further:
Code:
Share object 'libcrypto.so.6" not found, required by "X"
So I uninstalled old nVidia driver (with make deinstall), installed new one with:
Code:
# cd /usr/ports/x11/nvidia-driver
# make install clean
Still same messages.
I verified etc/rc.conf, I still have
Code:
hald_enable="YES"
dbus_enable="YES"
In xorg.conf, in driver it is still written nvidia.

Where is the problem ? Thank you.
 
After performing a major upgrade of FreeBSD, you need to rebuild all ports. In this case, particularly all Xorg related ports. The upgrade from FreeBSD-9.2 to FreeBSD-10.0 bumped libcrypto.so.6 to libcrypto.so.7. Since your installation of Xorg was built on FreeBSD-9.2, it is looking for libcrypto.so.6, which no longer exists.

pkg_libchk -qo will list the ports that are missing libraries, and thus need to be rebuilt.
 
Thank you, I tried to install the package libchk, but I cannot use anymore pkg_add, and when I try
Code:
# cd /usr/ports/sysutils/
# pkg install libchk
I get
Code:
Updating repository catalogue
I have followed the Installation Instructions, and nothing is working... :(

I guess that the upgrade is not complete ?
 
paradise said:
Thank you, I tried to install the package libchk, but I cannot use anymore pkg_add, and when I try
Code:
# cd /usr/ports/sysutils/
# pkg install libchk
I get
Code:
Updating repository catalogue
I have followed the Installation Instructions, and nothing is working... :(
Sorry, I should have mentioned that pkg_libchk is provided by sysutils/bsdadminscripts.
 
Is it patch-pkg_libchk, in /usr/ports/sysutils/bsdadminscripts/files? Anyway I get the same message Updating repository catalogue.
 
wblock@ said:
paradise said:
Logged in init 3 run-level (did I make a mistake ?)

How did you manage to do that? FreeBSD does not have run levels.
Sorry, I am coming from Linux, I mean when I log myself in tty.

I see you later, I go to sleep, it is four in the morning here ! :e
 
paradise said:
Is it patch-pkg_libchk ?, in
Code:
cd /usr/ports/sysutils/bsdadminscripts/files
Anyway I get the same message Updating repository catalogue..
Do:
Code:
cd /usr/ports/sysutils/bsdadminscripts
make install clean
Then:
Code:
pkg_libchk -qo
to list the ports with missing libraries.

paradise said:
Is it patch-pkg_libchk ?, in
Anyway I get the same message Updating repository catalogue..
The message is pkg(8) related. Are you installing ports or packages?
 
Alright, it is done.
.
When I launch
Code:
pkg_libchk -qo
nothing happens.
Am I to assume that I have to install some ports or packages ?

With
by wblock@ » 29 Apr 2014 03:17
The Handbook explains about installing applications: http://www.freebsd.org/doc/en_US.ISO885 ... ports.html.
I understand that already with my FreeBSD 9.2 when I used pkg_add -r I was installing packages, and with cd /usr/ports/... I was compiling ports? Is it right?
So now the new command is pkg install -r [i]package[/i]?

Thank you for your patience, in fact I know quite good Linux, but it is the first time I really deal with FreeBSD in depth.

So now, what I have to do ? Do I have to install again xorg, KDE4 like at the first installation of FreeBSD 9.2?

What is missing to startx?
 
paradise said:
I understand that already with my FreeBSD 9.2 when I used pkg_add -r I was installing packages, and with cd /usr/ports/... I was compiling ports? Is it right?
Yes.
So now the new command is pkg install -r package?
There's no need for the -r switch, install implies a remote install. See pkg-install(8).
 
paradise said:
Alright, it is done.
When I launch
Code:
pkg_libchk -qo
nothing happens.

paradise said:
So now the new command is pkg install -r [i]package[/i]?
Have you converted to the new PKGNG? See 4.1. Getting Started with pkgng. Once you convert to PKGNG, try running pkg_libchk -qo again. Also, after you've converted to PKGNG, do not use any of the pkg_*(e.g., pkg_install) commands. Use the new pkg (e.g., pkg install) instead. Each pkg(8) command has its own man page, for example man pkg-install shows the manpage for the pkg install command.
 
Code:
xauth: file /home/jbeziat/.serverauth.1248 does not exist
implies your name resolver is not working. This could be why pkg stops at "Updating repository catalogue" and might also be why pkg_libcheck -qo stalls.
 
Hello all !

So, I have converted to PKGNG with

Code:
# cd /usr/ports/ports-mgmt/pkg
# make
# make install clean
,

and I ran

Code:
# pkg_libchk -qo

, which made 772 jobs.

I ran too :

Code:
pkg2ng

I added in /etc/make.conf :

Code:
WITH_PKNG=YES

Rebooted, I still get the same message :

Code:
xauth: file /home/jbeziat/.serverauth.1104 does not exist

And several lines with 'Xauthority does not exist', and "libcrypto.so.6" not found, like the first time.

Do I have to upgrade some files again, to get for example libcrypto7 whose you were talkiing about ?

I tried :

Code:
pkg upgrade

but I get

Code:
Updating repository catalogue

Thank you.
 
I think that the problem is caused by libcrypto, in fact my nVidia driver is not installed cause of it.

In /var/log/Xorg.0.log, I get
Code:
Failed to initialize the NVIDIA kernel module
and ***Aborting***.
 
libcrypto should have been updated from libcrypto.so.6 to libcrypto.so.7 when you upgraded from FreeBSD-9.2 to FreeBSD-10.0. If you still have libcrypto.so.6, then your upgrade is not complete. Execute ls /lib and see which version of libcrypto you have installed.
 
paradise said:
I ran
Code:
# pkg_libchk -qo
If it did not report any ports with missing libraries, that's good.
paradise said:
I added in /etc/make.conf :
Code:
WITH_PKNG=YES
It should be PKGNG, but no matter, PKGNG is the default on FreeBSD-10.0, so you can remove it from /etc/rc.conf.
paradise said:
Rebooted, I still get the same message :
Code:
xauth: file /home/jbeziat/.serverauth.1104 does not exist
Me too. I just ignore them.
 
It is strange, with ls /lib I find libcrypto.so.7. Maybe I have to install nVidia driver manually? I found a NVIDIA-FreeBSD-x86_64-319.60 folder in my home, but in /var/db/pkg/ there are some nvidia-driver-319.32 files or modules, maybe it is the problem, a conflict?
 
So I did:

Code:
# cd/usr/ports/x11/nvidia-driver
# make deinstall clean
# make install clean

But I get an error:

Code:
(EE) NVIDIA(0): failed to obtain a shared memory identifier

and

Code:
Installing nvidia-driver-319-32... done
make[1]: "/usr/ports/Mk/bsd.xorg.mk" line 158: warning: Couldn't read shell's output for "/usr/localbin/X -version2>&1

I ignored these messages, and made

Code:
# nvidia-xconfig

rebooted, but still same messages as at the beginning, impossible to launch startx.

Why does "X" require libcrypto.so. 6? Is it not updated?

What can I do now?
 
paradise said:
rebooted, but still same messages as at the beginning, impossible to launch startx.

Why does "X" require libcrypto.so. 6 ? Is it not updated ?
What can I do now ?
x11/xorg needs to be rebuilt to use libcrypto.so.7. The x11/xorg currently installed was built under FreeBSD-9.2, which used libcrypto.so.6. Now that you have upgraded to FreeBSD-10.0, libcrypto.so.6 no longer exists, so x11/xorg fails to start. If you rebuild x11/xorg that should resolve the problem.
 
I have rebuilt x11/xorg, but now I get a new problem:

Code:
startx not found
. x(

kdm is missing, but I don't mind.

My /.xinitrc is OK:

Code:
exec /usr/local/kde4/bin/startkde

I tried to reinstall kde4, but if make clean works, make install does not:

Code:
Share object "libmd.so.5" not found, required by "cmake"

I think it would be more simple to reinstall FreeBSD. Doubtless I made a mistake somewhere, and I think it is too difficult to come back. And I don't want to bother you more. Anyway it was my first FreeBSD upgrade, not a success, but I know how to install a FreeBSD, and I have learned some news things in 10.0 version, I did not waste my time, neither you yours. :)

If you have any suggestions to resolve my problem, I am OK, otherwise I shall reinstall in few days the all FreeBSD from the ISO.

Thank you all!
 
Back
Top