parallel desktop ubuntu从18.04更新到20.04(包括安装Parallels Tools)

摘要:
ubuntu是如何更新到20.04的?我只说了正确的步骤(实际上不是按照这个顺序)。我使用了清华图片源并修改了/etc/opt/sources.list。我需要把它改回原来的状态。此链接为原始状态此步骤的原因是(报告错误),在扫描存储库信息时未找到有关bioniccouldbe的条目。升级可能不成功

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

  • image.png

cd /media, ls, 就会看到有Parallels目录, cd, 看到下面有一个目录是Parallels Tools. cp -r到某个目录, 比如home目录.

之后就是参考这个链接. 也一样遇到了报错, 但这里我就只记录对我可以work的步骤.

以下的操作都是在Parallels Tools目录下进行的.

cd kmod
sudo tar -xzf prl_mod.tar.gz
sudo rm prl_mod.tar.gz
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_mod.tar.gz . dkms.conf 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_mod.tar.gz)

Remove prl_mod.tar.gz file from that directory (rm prl_mod.tar.gz)

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_mod.tar.gz . dkms.conf 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

( @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用起来完全没差别了

免责声明:文章转载自《parallel desktop ubuntu从18.04更新到20.04(包括安装Parallels Tools)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Bootstrap 点击按钮切换内容MD5 加盐加密下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Linux下JDK、Tomcat安装及Web应用部署

一、JDK的安装 1、检查一下系统中的jdk版本 [root@localhost software]# java -version 显示: openjdk version "1.8.0_102" OpenJDK Runtime Environment (build 1.8.0_102-b14) OpenJDK 64-Bit Server VM (bui...

Linux 创建网络会话

RHEL7系统支持网络会话功能,允许用户在多个配置文件中快速切换(非常类似于firewalld防火墙服务中的区域技术)。如果我们在公司网络中使用笔记本电脑时需要手动指定网络的IP地址,而回到家中则是使用DHCP自动分配IP地址。这就需要麻烦地频繁修改IP地址,但是使用了网络会话功能后一切就简单多了—只需在不同的使用环境中激活相应的网络会话,就可以实现网络配...

图文并茂基于阿里云linux服务器部署nodejs项目并添加pm2守护nodejs项目运行进程(Linux version 4.19.81-17.1.al7.x86_64)

首先你要有一台LINIX服务器,登入以后按下面步骤执行命令,可查看系统版本以及配置 查看Linux 内核 通过 uname -a 命令查看系统位数是64位 x86_64表示64位系统, i686 i386表示32位系统 uname -a cat /proc/version 补充信息 -- 查看当前系统版本的详细信息 1.cat /etc/redh...

Linux下C++编程环境搭建

  有更简单的方法:在装机器的时候选择  开发工作站系统  development workstation 工作站。免去安装java jdk ,eclipse ,g++,ssh等等各种工具的麻烦。  需要注意的是通过虚拟机安装的时候,要先创建空虚拟机,再从虚拟光驱安装,不要直接选择操作系统类型,不然会默认给安装最简化版的。光中文的设置,和输入法安装 就能让...

Linux 文件截断的几种方式

文件截断, 指的是将文件内容分成两半, 只保留需要的文件长度的那部分. 通常, 将文件长度截断为0.文件截断方式:1. 使用系统调用open/fopen O_TRUNC截断open截断文件, 会清空文件已有内容, 即保留长度为0. 指定O_TRUNC标识时, 文件必须可写方式(如O_RDWR, O_WRONLY)打开. 例子, int fd = open(...

会话、进程组与僵死进程

  1.   终端       在Linux系统中,用户通过终端登录系统后得到一个Shell进程,这个终端成为Shell进程的控制终端(Controlling Terminal),Shell进程启动的其他进程的控制终端也是这个终端。默认情况下(没有重定向),每个进程的标准输入、标准输出和标准错误输出都指向控制终端,进程从标准输入读也就是读用户的键盘输入,进...