Jetson Nano 2GB error cp: not writing through dangling symlink 'etc/resolv.conf'


I configured VNC on my Jetson Nano 2GB (JetPack 4.5.1.) and adjusted Desktop Resolution according to the instruction in the README-vnc. I made a mistake in setting resolution (1920 * 10080 instead of 1920 * 1080) in /etc/lightdm/lightdm.conf.d/50-nvidia.conf (however, everthing worked both on my notebook with VNC and on display attached to J_Nano). After I corrected the resolution and made a reboot, I got this mistake on a display attached to J_Nano, and I can’t get through it.

I can ssh my J_Nano from my notebook (USB device mode) and navigate through directories, but I don’t understand how to fix the error and be able to work again with standalone J-Nano (with display+keyboard+mouse attached).

I have read posts related to similar errors, but could not find relevant solution.

Could anyone help me please to solve this problem?

hello Dmitry_F,

please check below for setting-up VNC on the Jetson developer kit,

Hello @JerryChang,

Thank you for your reply. Actually, I couldn’t start VNC (although I set it up correctly) when I had this mistake. I have recently resolved the issue this way:
As far, as I understood, the problem was “The real problem you have is the desktop manager (gdm3) seems not able to turn on so desktop is gone”. I did this:

  1. via ssh (USB device mode) I installed nano editor on my Jetson (since it’s the best way to reach config files on Jetson via ssh):
    sudo apt install nano
  2. then I opened and correted a mistake in desktop resolution in /etc/X11/xorg.conf:
    sudo nano /etc/X11/xorg.conf
  3. and made a reboot:
    sudo systemctl reboot

That’s it.
Below is a usefull link if there is a problem with gdm3 and or gnome:

Thank you for your support.