Errors during LXDE & TigerVNC dietpi-software install?

Looks like that SD card is broken. Also I recognised in fstab, the root and boot partition’s file system has been entered as “auto” while it should be ext4 and vfat respectively, like it was not detected correctly.

When you face those “command not found” errors, can you run and show the output of the following:

echo $PATH
command -v dmesg
[[ -f '/bin/dmesg' ]] && echo 'bash sees that file'
echo "$(</proc/mounts)"

Broken as in bin the SD Card and use another one, or broken in such a way that it would be worth trying a fresh install - if you are unsure, from your experience, if you were in this situation which option would you personally choose?

This is from when trying to install again:




[ INFO ] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev, please wait...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor                                                            rect the problem.
[FAILED] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
 - Command: apt-get -qq --allow-change-held-packages install xserver-xorg-core x                                                            server-xorg-input-libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-util                                                            s libgl1-mesa-dri mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
[ INFO ] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev, please wait...
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to cor                                                            rect the problem.
[FAILED] DietPi-Software | APT install for: xserver-xorg-core xserver-xorg-input                                                            -libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-utils libgl1-mesa-dri                                                             mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
 - Command: apt-get -qq --allow-change-held-packages install xserver-xorg-core x                                                            server-xorg-input-libinput xinit dbus-x11 xfonts-base x11-xserver-utils x11-util                                                            s libgl1-mesa-dri mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
[ INFO ] DietPi-Bugreport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT, ple                                                            ase wait...
[  OK  ] DietPi-Bugreport | cp /tmp/G_EXEC_ERROR_REPORT G_EXEC_ERROR_REPORT
[  OK  ] DietPi-Bugreport | Packing upload archive
[  OK  ] DietPi-Bugreport | Sending bug report
[ INFO ] DietPi-Bugreport | Reference code: 7120d931-0a86-43cd-9a4d-fcca315d631f



#### Details:
- Date           | Thu Jun  3 09:06:51 BST 2021
- Bug report     | 7120d931-0a86-43cd-9a4d-fcca315d631f
- DietPi version | v7.2.3 (MichaIng/master)
- Image creator  | DietPi Core Team
- Pre-image      | Raspberry Pi OS (32-bit) Lite
- Hardware       | RPi 3 Model B (armv7l) (ID=3)
- Kernel version | Linux DietPi 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 20                                                            21 armv7l GNU/Linux
- Distro         | buster (ID=5,RASPBIAN=1)
- Command        | apt-get -qq --allow-change-held-packages install xserver-xorg                                                            -core xserver-xorg-input-libinput xinit dbus-x11 xfonts-base x11-xserver-utils x                                                            11-utils libgl1-mesa-dri mesa-utils mesa-utils-extra xserver-xorg-video-fbdev
- Exit code      | 100
- Software title | DietPi-Software
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:

E: dpkg was interrupted, you must manually run ‘sudo dpkg --configure -a’ to cor rect the problem.

After sudo dpkg --configure -a I received errors and input the code you suggested:

dietpi@DietPi:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
dietpi@DietPi:~$ command -v dmesg
/bin/dmesg
dietpi@DietPi:~$ [[ -f '/bin/dmesg' ]] && echo 'bash sees that file'
bash sees that file
dietpi@DietPi:~$ echo "$(</proc/mounts)"
/dev/root / ext4 rw,lazytime,noatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=465280k,nr_inodes=116320,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=27,pgrp=1,timeout=0,minproto=5,maxproto=5,direct 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
tmpfs /var/log tmpfs rw,lazytime,nosuid,nodev,noatime,size=51200k 0 0
tmpfs /tmp tmpfs rw,lazytime,nosuid,nodev,noatime,size=1048576k 0 0
/dev/mmcblk0p1 /boot vfat rw,lazytime,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0

Please let me know if I can try anything else or provide any more information - or if I should go ahead and try a fresh install on the SD card, or scrap it for a new one.

what is the error on sudo dpkg --configure -a

Looking back on the log again I can see that there actually were no errors. I have been able to install LXDE and TigerVNC, thank you both :slight_smile:

Should I be concerned about the system or card, or do anything else to do anything else to check it?

During the LXDE and TigerVNC install a wizard appeared asking me to select whether the desktop or terminal etc would load automatically but it closes itself while I am reading the options - I uninstalled and reinstalled and this happened a few times. If I am away from the keyboard for long enough when the wizard appears I will just be taken back to the terminal without pressing anything.

dietpi@DietPi:~$ systemctl status vncserver
● vncserver.service - Manage VNC Server (DietPi)
   Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset: enabled)
   Active: active (exited) since Thu 2021-06-03 13:51:45 BST; 12s ago
  Process: 3326 ExecStart=/usr/local/bin/vncserver start (code=exited, status=0/SUCCESS)
 Main PID: 3326 (code=exited, status=0/SUCCESS)

Can you please tell me if this is necessary, and if so if there is some way I can bring up the Wizard again without uninstalling and reinstalling again, are if there any particular options I should choose to be able to keep Discord persistently running and starting automatically on boot?

When I use TigerVNC to connect to my Pi on port 1 or port 5901 I receive a password prompt, and I read on the DietPi website I should have been prompted to configure one but I was not. I tried my dietpi user password but this did not work.

With vncpassword I set a password and a view only password but when I paste the password to the TigerVNC password prompt I receive an authentication failure.

Can you please tell me what I need to do here?

to be able to change auto start option, just use dietpi-config > 9 : AutoStart Options

Is there something in particular there I need to configure that is not covered in the guide?

https://dietpi.com/docs/software/remote_desktop/

but after inputting my password to the prompt which warns the connection is not secure I receive this error:

I tried to view the log file but it does not exist:

dietpi@DietPi:~/.vnc$ ls -la
total 12
drwxr-xr-x 2 dietpi dietpi 4096 Jun  3 13:58 .
drwxr-xr-x 3 dietpi dietpi 4096 Jun  3 13:58 ..
-rw------- 1 dietpi dietpi    8 Jun  3 14:49 passwd

By default it’s a root user session. When you’re not logged into console as root user, the password hence needs to be set via: sudo vncpasswd

If you want to have a dietpi user session:

mkdir -p /home/dietpi/.vnc
sudo cp -a /root/.vnc/xstartup /home/dietpi/.vnc/xstartup
sudo chown -R dietpi: /home/dietpi/.vnc
sed -i 's|/root|/home/dietpi|g' /home/dietpi/.vnc/xstartup
vncpasswd
sudo systemctl stop vncserver
sudo dietpi-services



  • Select “vncserver”
  • Select “Edit”
  • Uncomment and change those two lines


User=dietpi
Environment=HOME=/home/dietpi

I think it should be restarted already, but if not:

sudo systemctl restart vncserver

Thank you for the reply, but something is still not right:

dietpi@DietPi:~$ mkdir -p /home/dietpi/.vnc
dietpi@DietPi:~$ sudo cp -a /root/.vnc/xstartup /home/dietpi/.vnc/xstartup
dietpi@DietPi:~$ sudo chown -R dietpi: /home/dietpi/.vnc
dietpi@DietPi:~$ sed -i 's|/root|/home/dietpi|g' /home/dietpi/.vnc/xstartup
dietpi@DietPi:~$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
dietpi@DietPi:~$ sudo systemctl stop vncserver
dietpi@DietPi:~$ sudo dietpi-services

If relevant for vncserver instead of showing active here it shows failed on this screen:

and also here for the state:




[Unit]
#Description=Manage VNC Server (DietPi)
#Before=xrdp.service xrdp-sesman.service
#Wants=network-online.target
#After=network-online.target dietpi-boot.service

[Service]
#RemainAfterExit=yes
User=dietpi
#PAMName=login
Environment=HOME=/home/dietpi
#ExecStart=/usr/local/bin/vncserver start
#ExecStop=/usr/local/bin/vncserver stop

[Install]
#WantedBy=multi-user.target

On saving and exited it does automatically restart the service but as a precaution:

[  OK  ] DietPi-Services | systemctl daemon-reload
[  OK  ] DietPi-Services | systemctl restart vncserver

I then tried connecting on port 5901 and port 1:

Prompt warns the connection is insecure:

And then as before rejects the password with Authentication Failure.

Please tell me if there is something else I can try or more information I can provide?

if relevant when prompted during install I selected the user dietpi rather than root.

systemd status log:

daemon-reload resolved this, thanks.

dietpi@DietPi:~$ systemctl status vncserver
Warning: The unit file, source configuration file or drop-ins of vncs
erver.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● vncserver.service - Manage VNC Server (DietPi)
   Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset
: enabled)
  Drop-In: /etc/systemd/system/vncserver.service.d
           └─dietpi-services_edit.conf
   Active: active (exited) since Fri 2021-06-04 13:36:43 BST; 2h 44mi
n ago
  Process: 408 ExecStart=/usr/local/bin/vncserver start (code=exited, status=0/S
UCCESS)
 Main PID: 408 (code=exited, status=0/SUCCESS)
dietpi@DietPi:~$ systemctl daemon-reload
Failed to reload daemon: Interactive authentication required.
dietpi@DietPi:~$ sudo systemctl daemon-reload
dietpi@DietPi:~$ systemctl status vncserver
● vncserver.service - Manage VNC Server (DietPi)
   Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset: enabled)
  Drop-In: /etc/systemd/system/vncserver.service.d
           └─dietpi-services_edit.conf
   Active: active (exited) since Fri 2021-06-04 13:36:43 BST; 2h 45min ago
 Main PID: 408 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 1628)
   CGroup: /system.slice/vncserver.service