paralleldesktopubuntu从18.04更新到20.04(包括安装Paral。。。
ubuntu是怎么更新到20.04的
只说正确的步骤(实际上不是这个顺序)
我之前⽤了清华镜像源, 修改了/etc/apt/sources.list, 需要把它改回原样, 就是原样. 做这⼀步的原因是(报错是), while scanning your repository information no entry about bionic could be found. An upgrade might not succeed.
执⾏sudo apt list --installed | grep libappstream, 我看到有libappstream4, 再执⾏sudo apt-get purge libappstream4, 删除这个包
这⼀步对应的报错(意思就是做这⼀步的原因)是: E:Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e
/usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi', E:Sub-process returned an error code
sudo do-release-upgrade -d -f DistUpgradeViewGtk3, 然后等待就可以了
是怎么安装Parallels Tools的
我很怀疑Parallels Tools没有装, 执⾏ls /media/psf, 也的确没有看到任何⽬录(本来应该有mac的Home⽬录的), 因此需要重装Parallels Tools
cd /media, ls, 就会看到有Parallels⽬录, cd, 看到下⾯有⼀个⽬录是Parallels Tools. cp -r到某个⽬录, ⽐如home⽬录.
之后就是参考. 也⼀样遇到了报错, 但这⾥我就只记录对我可以work的步骤.
以下的操作都是在Parallels Tools⽬录下进⾏的.
cd kmod
sudo tar -xzf prl_
sudo rm prl_
sudo vim prl_fs/SharedFolders/Guest/Linux/prl_fs/prlfs.h # 跳到16⾏, 加上#include <uapi/linux/mount.h
>
# 以下两步编辑的原因是No rule to make target 'arch/x86/tools/relocs_32.c', needed by 'arch/x86/tools/relocs_32.o'.  Stop.
sudo vim ./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile # 第20⾏改为DRIVER_DIR ?= $(shell pwd), 本来是$(PWD)
sudo vim ./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26 # 第18⾏改为$(MAKE) -C $(SRC) M=$(shell pwd) SUBDIRS=$(shell pwd) SRCROOT=$(shell pwd) CC=$(CC) modules, 本来没有M=$(shell pwd) sudo tar -zcvf prl_ . f Makefile.kmods
cd ../installer
sudo chmod 777 *.sh
sudo ./install-cli.sh -i --verbose
# 提⽰成功
reboot
这是我整合的步骤, 对应原⽂中的这两个部分
In a very similar approach, copy the files from the Parallels
installation media and drop them in a folder somewhere (eg.
~/parallels_fixed)
Go to the kmods directory (cd ~/parallels_fixed/kmods) and extract the files (tar -xzf prl_)
Remove prl_ file from that directory (rm prl_)
Find this file: ~/<your-folder-goes-here>/kmods/prl_fs/SharedFolders/Guest/Linux/prl_fs/prlfs.h
Modify the file by going to line 16 and inserting a new line. Add this text: #include <uapi/linux/mount.h>
The file should now look like this. Save and exit.
..
#include <linux/fs.h>
#include <uapi/linux/mount.h>
#include <linux/types.h>
..
Go to the kmods directory (cd ~/parallels_fixed/kmods) and re-zip the files: tar -zcvf prl_ . f Makefile.kmods In case you missed it, yes that is a period(.) sitting there by itself and necessary.
Go to the installer directory cd ~/parallels_fixed/installer
Sudo chmod the script files: install-cli.sh (and others) to be executable eg. sudo chmod 777 *.sh
ubuntu vim命令
( @7feilee reports that if drag and drop is not working, then also try sudo chmod 777 prl* as the next step after chmod'ing the above script files ).
Then run that file with: sudo ./install-cli.sh -i --verbose
Reboot when it's finished.
Additionally, I had to modify the following files:
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile:20
DRIVER_DIR ?= $(shell pwd)
./kmods/prl_tg/Toolgate/Guest/Linux/prl_tg/Makefile.v26:18
$(MAKE) -C $(SRC) M=$(shell pwd) SUBDIRS=$(shell pwd) SRCROOT=$(shell pwd) CC=$(CC) modules
NB: That is for Ubuntu 20.04 "kernel 5.4.0-21" and Parallels: 14.1.3 (45485).
然后就与之前ubuntu 18.04⽤起来完全没差别了

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。