rosout symbol lookup error
HI all, I am introducing to ROS and I am trying to follow the beginner tutorials. I've got an error when launching roscore:
auto-starting new master
process[master]: started with pid [13983]
ROS_MASTER_URI=http://localhost:11311/
setting /run_id to 4de83cb2-83de-11ea-bdee-acfdce903724
process[rosout-1]: started with pid [13994]
started core service [/rosout]
/opt/ros/melodic/lib/rosout/rosout: symbol lookup error: /opt/ros/melodic/lib/librosconsole_log4cxx.so: undefined symbol: _ZN7log4cxx16AppenderSkeleton9setOptionERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_
[rosout-1] process has died [pid 13994, exit code 127, cmd /opt/ros/melodic/lib/rosout/rosout __name:=rosout __log:=/home/albert/.ros/log/4de83cb2-83de-11ea-bdee-acfdce903724/rosout-1.log].
log file: /home/albert/.ros/log/4de83cb2-83de-11ea-bdee-acfdce903724/rosout-1*.log
[rosout-1] restarting process
It seems to be an error with some kind of symbol from /opt/ros/melodic/lib/librosconsole_log4cxx.so that causes an exit code 127 to rosout. It is repeating all the time the same error in new processes.
I have Melodic full desktop installation on Ubuntu 18.04. New installation clean and updated without any broken packages.
What do you think is it happening?
Thanks in advance!