Upgrade of fishfish
Last updated 2020-12-25 by Adam Lu
-
Upgraded from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS:
-
First applied these commands using the alias
updateall
:sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y sudo apt-get autoremove -y
-
Performed upgrade using the command:
sudo do-release-upgrade -d
-
Series of questions:
-
Applied these commands again using the alias
updateall
:sudo apt-get update -y sudo apt-get upgrade -y sudo apt-get dist-upgrade -y sudo apt-get autoremove -y
-
-
Desktop issue: wouldn’t load (stuck on
dev/sda1: clean
message, which is a (normal) output offsck
).-
Fixed after removing NVIDIA drivers:
sudo apt-get purge nvidia*
-
-
Server automatically hibernates (Only started happening after desktop issue was fixed)
-
Tried this approach to prevent from automatically hibernating
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
-
-
VNC server issue: the command
vncserver
disappeared.-
Tried re-installing VNC Server this way:
sudo apt-get install vnc4server
But got this message:
Package vnc4server is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package ‘vnc4server’ has no installation candidate
-
Installed VNC Server from this website:
sudo dpkg -i /media/shareX/Software/vnc4server_4.1.1+X4.3.0+t-1_amd64.deb
However, there is a dependency on Tiger VNC:
Preparing to unpack vnc4server_4.1.1+X4.3.0+t-1_amd64.deb … Unpacking vnc4server (4.1.1+X4.3.0+t-1) … dpkg: dependency problems prevent configuration of vnc4server: vnc4server depends on tigervnc-standalone-server; however: Package tigervnc-standalone-server is not installed.
dpkg: error processing package vnc4server (–install): dependency problems - leaving unconfigured Errors were encountered while processing: vnc4server
-
Therefore, tried this:
# First installed Tiger VNC, which vnc4server apparently depends on sudo apt-get install tigervnc-standalone-server # Installed this file downloaded from the website sudo dpkg -i /media/shareX/Software/vnc4server_4.1.1+X4.3.0+t-1_amd64.deb
-
However, this would still cause Tiger VNC to be used.
-
Therefore, removed the above:
sudo apt-get remove tigervnc-standalone-server sudo apt-get remove vnc4server
-
Tried to install Real VNC server from its website:
sudo dpkg -i VNC-Server-6.7.2-Linux-x86.deb
But encountered the message:
dpkg: dependency problems prevent configuration of realvnc-vnc-server:i386: realvnc-vnc-server:i386 depends on libxtst6.
dpkg: error processing package realvnc-vnc-server:i386 (–install): dependency problems - leaving unconfigured
-
Therefore, tried this:
sudo apt-get install libxtst6:i386
Which successfully unpacks
realvnc-vnc-server:i386
, but causes a license error upon trialingvncserver
:VNC(R) Server 6.7.2 (r42622) x86 (May 13 2020 19:10:53) Copyright (C) 2002-2020 RealVNC Ltd. RealVNC and VNC are trademarks of RealVNC Ltd and are protected by trademark registrations and/or pending trademark applications in the European Union, United States of America and other jurisdictions. Protected by UK patent 2481870; US patent 8760366; EU patent 2652951. See https://www.realvnc.com for information on VNC. For third party acknowledgements see: https://www.realvnc.com/docs/6/foss.html OS: Ubuntu 20.04, Linux 5.4.0, amd64
Generating private key… done Error: No license keys found. Run vnclicense to apply the license key associated with your Enterprise subscription. [NoLicense]
-
Therefore, removed the above:
sudo apt-get remove libxtst6:i386
-
Tried to install the same version as chalkboard’s VNC server from this site:
sudo dpkg -i vnc4server_4.1.1+xorg4.3.0-37.3ubuntu2_amd64.deb
And got this message:
Selecting previously unselected package vnc4server. (Reading database … 392995 files and directories currently installed.) Preparing to unpack vnc4server_4.1.1+xorg4.3.0-37.3ubuntu2_amd64.deb … Unpacking vnc4server (4.1.1+xorg4.3.0-37.3ubuntu2) … dpkg: dependency problems prevent configuration of vnc4server: vnc4server depends on xbase-clients; however: Package xbase-clients is not installed.
dpkg: error processing package vnc4server (–install): dependency problems - leaving unconfigured Processing triggers for man-db (2.9.1-1) … Errors were encountered while processing: vnc4server
-
Therefore, tried this:
sudo apt-get install xbase-clients
This allowed
vncserver
to be installed. However, no sessions could be opened:adam@fishfish:~$ vnclarge
New ‘fishfish:1 (adam)’ desktop is fishfish:1
Starting applications specified in /etc/X11/Xvnc-session Log file is /home/adam/.vnc/fishfish:1.log
adam@fishfish:~$ vncsessions There are no processes running for the command vnc!
The first output looked different from chalkboard’s (
/etc/X11/Xvnc-session
vs/home/adam/.vnc/xstartup
):adam@chalkboard:~$ vnclarge
New ‘chalkboard:2 (adam)’ desktop is chalkboard:2
Starting applications specified in /home/adam/.vnc/xstartup Log file is /home/adam/.vnc/chalkboard:2.log
-
Tried the following:
-
Removed files in
~/.vnc
not present in chalkboard:rm ~/.vnc/config.d/Xvnc rmdir ~/.vnc/config.d rm ~/.vnc/private.key
-
Removed files in
/etc/X11
not present in chalkboard:sudo rm /etc/X11/xorg.conf* sudo rm -r /etc/X11/Xvnc-session sudo rm /etc/X11/vncserver-virtual-*
-
Removed folder
/etc/vnc
, which is not present in chalkboard:sudo mv /etc/vnc /etc/vnc-backup-20201225
-
Output becomes this but still not using
$HOME/.vnc/xstartup
:New ‘fishfish:1 (adam)’ desktop is fishfish:1
Creating default startup script /etc/X11/Xvnc-session Starting applications specified in /etc/X11/Xvnc-session Log file is /home/adam/.vnc/fishfish:1.log
Note that
/etc/X11/Xvnc-session
doesn’t actually get created -
Removed extra packages not existent in chalkboard:
sudo apt-get remove xserver-xorg-video-nvidia-396
-
Tried removing the
.Xauthority
file:rm ~/.Xauthority
Similar output:
adam@fishfish:~$ vnclarge
xauth: file /home/adam/.Xauthority does not existNew ‘fishfish:1 (adam)’ desktop is fishfish:1
Creating default startup script /etc/X11/Xvnc-session Starting applications specified in /etc/X11/Xvnc-session Log file is /home/adam/.vnc/fishfish:1.log
-
Tried creating
/etc/vnc/xstartup
based on this thread:sudo mkdir /etc/vnc sudo cp ~/.vnc/xstartup /etc/vnc/xstartup sudo chmod 775 /etc/vnc/xstartup
Same output
-
Tried creating
/etc/X11/Xvnc-session
using custom startup file:sudo cp ~/.vnc/xstartup /etc/X11/Xvnc-session sudo chmod 775 /etc/X11/Xvnc-session
Finally fixed it:
> New 'fishfish:1 (adam)' desktop is fishfish:1 > > Starting applications specified in /etc/X11/Xvnc-session > Log file is /home/adam/.vnc/fishfish:1.log
-
-