在一次在线培训课程中,讲师提到他有“安装了 Docker Desktop 的 Ubuntu 虚拟机”;因此,我尝试按照官方网站上的说明在 Windows 10 物理主机上安装相同的程序。
然而,这apt-get install不起作用,错误消息是docker-desktop : Depends: docker-ce-cli but it is not installable。我想知道我是否在这里错过了什么。
我们非常感谢任何提示或建议。如果您需要更多详细信息,请告诉我。
截屏:
root@dockeru:/home/work/Downloads# ls
docker-desktop-4.8.1-amd64.deb
root@dockeru:/home/work/Downloads# apt-get install ./docker-desktop-4.8.1-amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'docker-desktop' instead of './docker-desktop-4.8.1-amd64.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have …Run Code Online (Sandbox Code Playgroud) SSL 证书颁发机构以格式向我发送了签名证书.pfx,并且受密码保护;所以我需要将其转换为.crt文件。
第一次尝试是openssl pkcs12 -in server.pfx -out server.crt -nokeys -clcerts简单地在 Git-Bash Windows 中调用 ; 但它永远等待,没有任何输出或提示。最终,我切换到 Linux (RHEL7),同样的命令运行正常。事实证明,在Linux中命令提示符为“ Enter Import Password:”;但是,在 Windows Git-Bash 中运行时,它缺少密码提示,并且将永远挂在那里。
我想知道是否有什么东西可以让它在 Windows Git-Bash 中工作,例如命令参数等,因为我的工作计算机仍在运行 Windows 操作系统。任何指示都将受到高度赞赏。
Linux 的截图:
[root@host]# openssl pkcs12 -in server.pfx -out server.crt -nokeys -clcerts
Enter Import Password:
MAC verified OK
[root@host]#
Run Code Online (Sandbox Code Playgroud) 为了临时解决兼容性问题,我尝试将 Python 包的版本arrow从 0.17.0 降级到 0.13.2。
在特定服务器上我无法安装,因为下面的命令调用安装 0.13.2 但最终安装回 0.17.0。如果删除虚拟环境,并生成一个新的虚拟环境并重新安装0.13.2,则可以正常工作。
我也在虚拟机上测试过,降级正常,没有这个症状。
我想知道为什么,任何意见都将受到高度赞赏。
(venv3.7) [user@host freeze]$ pip install -I arrow==0.13.2
Collecting arrow==0.13.2
Using cached arrow-0.13.2-py2.py3-none-any.whl (37 kB)
Collecting python-dateutil
Using cached python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)
Collecting six>=1.5
Using cached six-1.15.0-py2.py3-none-any.whl (10 kB)
Installing collected packages: six, python-dateutil, arrow
Successfully installed arrow-0.17.0 python-dateutil-2.8.1 six-1.15.0
(venv3.7) [user@host freeze]$
Run Code Online (Sandbox Code Playgroud) MariaDB的MariaDB升级似乎遵循相同的行为模式:删除旧版本,保留数据,然后安装新版本,例如从MariaDB 10.3升级到MariaDB 10.4,其他版本到版本的过程是相同的。
在 RHEL 7 主机上从 v10.3 升级到 v10.9 时,安装新版本时出现错误,提示Error: Package: MariaDB-server-10.9.2-1.el7.centos.x86_64 (mariadb) Requires: pv.
我是升级过程的新手,因此我将非常感谢任何提示或建议。
完整截图:
[root@hostname lib]# yum install MariaDB-server MariaDB-client MariaDB-backup MariaDB-shared
Loaded plugins: product-id, search-disabled-repos, subscription-manager
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-backup.x86_64 0:10.9.2-1.el7.centos will be installed
--> Processing Dependency: libpmem.so.1(LIBPMEM_1.0)(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: MariaDB-common for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: libpmem.so.1()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
--> Processing Dependency: libpcre2-8.so.0()(64bit) for package: MariaDB-backup-10.9.2-1.el7.centos.x86_64
---> Package …Run Code Online (Sandbox Code Playgroud)