这种情况经常发生。每次我看到 RAM 使用峰值时,GUI 都会重新启动。如果有任何帮助,我将不胜感激。
还需要什么其他信息?
当我在 Virtualbox 中使用 Windows 10 时,我就遇到过这种情况,我已经将其设置为消耗 6GB 内存。我有 12 GB 内存和 25 GB 交换空间。
这种情况经常发生。每次我看到 RAM 使用峰值时,GUI 都会重新启动。如果有任何帮助,我将不胜感激。
还需要什么其他信息?
当我在 Virtualbox 中使用 Windows 10 时,我就遇到过这种情况,我已经将其设置为消耗 6GB 内存。我有 12 GB 内存和 25 GB 交换空间。
遵循https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-20-04中的选项 2 :
$ cd ~
$ curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
我收到错误消息:
## Installing the NodeSource Node.js 16.x repo...
## Populating apt-get cache...
+ apt-get update
Hit:1 http://repo.mysql.com/apt/ubuntu focal InRelease
Hit:2 http://np.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease
Ign:4 http://oem.archive.canonical.com/updates precise-oem-sp1 InRelease
Get:5 http://oem.archive.canonical.com/updates precise-oem-sp1 Release [4,325 B]
Hit:6 http://np.archive.ubuntu.com/ubuntu focal-updates InRelease
Get:7 http://oem.archive.canonical.com/updates precise-oem-sp1 Release.gpg [287 B]
Ign:7 http://oem.archive.canonical.com/updates precise-oem-sp1 Release.gpg
Hit:8 https://repo.skype.com/deb stable InRelease
Hit:9 http://np.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:11 https://download.sublimetext.com apt/stable/ InRelease
Hit:10 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Reading package lists... Done
W: GPG error: http://oem.archive.canonical.com/updates precise-oem-sp1 Release: Detached signature file '/var/lib/apt/lists/partial/oem.archive.canonical.com_updates_dists_precise-oem-sp1_Release.gpg' is in unsupported binary format
E: The repository 'http://oem.archive.canonical.com/updates precise-oem-sp1 Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Error executing command, exiting
你能帮我解决这个问题吗?我无法继续前进,因为默认的 nodejs 是 10.19,它不受支持和维护。我在使用此版本时遇到问题,现在无法将其升级到当前版本。
我从 ubuntu 18.04 升级到 20.04,现在我的 mysql 不工作了。我记得在从mysql 5.7升级到mysql 8.0的过程中提到了一些注意事项;我记错了。
现在,我无法安装mysql。这就是我得到的:
maan@maan-Inspiron-5537:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-server is already the newest version (8.0.23-0ubuntu0.20.04.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up mysql-server-8.0 (8.0.23-0ubuntu0.20.04.1) ...
Renaming removed key_buffer and myisam-recover options (if present)
ERROR: Unable to start MySQL server:
2021-02-08T08:39:12.431863Z 0 [ERROR] [MY-000077] [Server] /usr/sbin/mysqld: Error while setting value 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_
FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' to 'sql_mode'.
2021-02-08T08:39:12.493831Z 0 [ERROR] [MY-010119] [Server] Aborting
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-8.0 (--configure):
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-8.0; however:
Package mysql-server-8.0 is not configured yet.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
mysql-server-8.0
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
maan@maan-Inspiron-5537:~$
我不想删除现有的数据库。
有出路吗 ?