我正在使用 Ubuntu 22.04,我搞砸了安装。有没有办法让我在另一台电脑上运行iso?
Ubuntu 20.04 升级几天后,我进入了登录屏幕循环。我试图用这个来解决它。没有任何建议有帮助,在决赛之后sudo apt-get -y install lxdm
我只会在启动时出现黑屏。我正在使用双启动笔记本电脑(win10,可以正常启动)并且能够访问 grub。当我尝试以恢复模式(虽然我真的不知道如何使用它)或使用较旧的内核版本启动时,我也遇到了黑屏。
我应该如何进行?重新安装Ubuntu还是尝试修复它更好(我不知道如何)?
编辑:黑屏之前的最后一件事是
/dev/sda11: clean, 403200/0536061 files, 7291387/34131712 blocks krenkz login:
sda11 是我的根分区
所以,我输入“apt install mysql-server-8.0”,它返回:
Building dependency tree
Reading state information... Done
Suggested packages:
tinyca
The following packages will be upgraded:
mysql-server-8.0
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,249 kB of archives.
After this operation, 20.5 kB of additional disk space will be used.
Preconfiguring packages ...
(Reading database ... 306894 files and directories currently installed.)
Preparing to unpack .../mysql-server-8.0_8.0.21-0ubuntu0.20.04.3_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: warning: old mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.21-0ubuntu0.20.04.3_amd64.deb (--unpack):
new mysql-server-8.0 package pre-removal script subprocess returned error exit status 1
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
Failed to start mysql.service: Unit mysql.service not found.
invoke-rc.d: initscript mysql, action "start" failed.
Unit mysql.service could not be found.
dpkg: error while cleaning up:
installed mysql-server-8.0 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.21-0ubuntu0.20.04.3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
我试过卸载,重新安装,安装。没有任何效果。我将相关.deb
文件移至/tmp
from /var/cache/apt/archives/
,但仍然无法将其从我的系统中取出。mysql 5.7 似乎仍在这台机器上,尝试删除它会导致相同的错误。我已经束手无策了。谷歌没有帮助(遵循了许多方向,包括这里的一个:https : //itsfoss.com/dpkg-returned-an-error-code-1/ 无济于事)。
所以我做了:dpkg --configure -a
它吐了回来:
dpkg: dependency problems prevent configuration of mysql-server-8.0:
mysql-server-8.0 depends on mysql-server-core-8.0 (= 8.0.20-0ubuntu0.20.04.1); however:
Version of mysql-server-core-8.0 on system is 8.0.21-0ubuntu0.20.04.3.
dpkg: error processing package mysql-server-8.0 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server-8.0
Ubuntu 20.04 LTS
---我已经尝试过(两次)--- mariadb 失败后安装 mysql-server mariadb 不是问题,因为虽然它安装在这台计算机上,但所有依赖项都已被删除,如下所示。终端截图如下 https://pastebin.ubuntu.com/p/9pPQDbFzYf/情况可能类似但情况并非如此。
我已经在 synaptic 中删除了 Libmysqlclient21,因为它出现故障,试图在 synaptic 上成功卸载 MySQL 并重新安装它 synaptic UNsuccessfully,显然有一个我找不到的正在运行的 MySQL 进程,这阻止了 mysql-server-8.0 的安装( mysql-client、client-8.0、client-core-8.0、server 和 server-core-8.0 重新安装就好了)。接下来你会发现 ubuntu 终端捕获清理https://pastebin.ubuntu.com/p/pJCxYm5K2w/,以及显示与“自身”冲突的突触屏幕捕获,ps aux 报告没有运行 mysql 的实例,
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 220062 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.8+1.0.5ubuntu2_all.deb ...
Unpacking mysql-common (5.8+1.0.5ubuntu2) ...
Selecting previously unselected package mysql-client-core-8.0.
Preparing to unpack .../mysql-client-core-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-client-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-client-8.0.
Preparing to unpack .../mysql-client-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-client-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-server-core-8.0.
Preparing to unpack .../mysql-server-core-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-server-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Setting up mysql-common (5.8+1.0.5ubuntu2) ...
update-alternatives: warning: alternative /etc/mysql/mysql.cnf (part of link group my.cnf) doesn't exist; removing from list of alternatives
update-alternatives: warning: /etc/alternatives/my.cnf is dangling; it will be updated with best choice
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-8.0.
(Reading database ... 220262 files and directories currently installed.)
Preparing to unpack .../mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb (--unpack):
new mysql-server-8.0 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mysql-client-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Setting up mysql-server-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Setting up mysql-client-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
在突触上重新安装的输出
Preconfiguring packages ...
(Reading database ... 221833 files and directories currently installed.)
Preparing to unpack .../mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb (--unpack):
new mysql-server-8.0 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-8.0; however:
Package mysql-server-8.0 is not installed.
dpkg: error processing package mysql-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
mysql-server
第二次重新安装尝试
Preconfiguring packages ...
Selecting previously unselected package mysql-common.
(Reading database ... 220062 files and directories currently installed.)
Preparing to unpack .../mysql-common_5.8+1.0.5ubuntu2_all.deb ...
Unpacking mysql-common (5.8+1.0.5ubuntu2) ...
Selecting previously unselected package mysql-client-core-8.0.
Preparing to unpack .../mysql-client-core-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-client-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-client-8.0.
Preparing to unpack .../mysql-client-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-client-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Selecting previously unselected package mysql-server-core-8.0.
Preparing to unpack .../mysql-server-core-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Unpacking mysql-server-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Setting up mysql-common (5.8+1.0.5ubuntu2) ...
update-alternatives: warning: alternative /etc/mysql/mysql.cnf (part of link group my.cnf) doesn't exist;
removing from list of alternatives
update-alternatives: warning: /etc/alternatives/my.cnf is dangling; it will be updated with best choice
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Selecting previously unselected package mysql-server-8.0.
(Reading database ... 220262 files and directories currently installed.)
Preparing to unpack .../mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb ...
Failed to stop mysql.service: Unit mysql.service not loaded.
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 5
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
dpkg: error processing archive /var/cache/apt/archives/mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb (--unpack):
new mysql-server-8.0 package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-8.0_8.0.20-0ubuntu0.20.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up mysql-client-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Setting up mysql-server-core-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Setting up mysql-client-8.0 (8.0.20-0ubuntu0.20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9) ...
ps aux命令输出,没有与 MySQL 相关的运行进程(据我所知) https://pastebin.ubuntu.com/p/z4cCYXBykW/
十分感谢
我是一个很长时间的 ubuntu 用户(十多年),但我没有来过这里,因为我对 Ubuntu 没有任何问题。随着 20.04 LTS 的到来,我决定加密我的数据(或系统,如果需要)。我正在寻找以下内容:
- 在具有 Win10 的双启动系统上安装以前的 LUKS 加密 ubuntu 重新安装具有 LUKS 加密的 ubuntu 的方法。
- 保持我所有的个人文件(即
/home
文件夹)完好无损,无论有没有单独的分区。我不想把所有东西都搬出去,重新安装然后再搬回去。 - 通过标准安装程序实现简单的基于 GUI 的方法。我知道如何使用命令行,但我不想这样做,尤其是对于像加密这样敏感的东西。
我正在寻找的内容与本文档基本相同:(https://help.ubuntu.com/community/UbuntuReinstallation)除了我需要在 LUKS 加密系统/分区上使用它。我尝试在具有 20.04 的备用系统上执行此操作,但我找不到将密码告诉安装程序加密系统的方法。最终结果是重新安装无法启动或加密分区被清除。我还尝试在有和没有预先解锁加密分区的情况下运行安装程序,但无济于事。
我可以使用 Fedora、OpenSUSE、Manjaro 完成上述所有操作(尽管它们仅在 /home 位于单独的分区上时才这样做,这对我来说很好)所以我不确定我在 Ubuntu 中做错了什么.
谢谢!
我不确定这是解决我的问题的正确问题...
我有一个 8 GB 的 SSD,我安装了 Ubuntu,还有一个 1 TB 的 HDD,有几个分区:一个大的,里面有我所有的重要数据,一个小一点的 Windows,另一个安装在 /opt(因为 8 GB 对于整个系统)和更多的大约 100 GB。这已经工作了大约一年,但现在我已经进行了很多编程,并且 Python 模块安装在 /home,所以我决定按照这个指示并将 /home 也安装在它自己的分区上。我还删除了 Windows 分区,因为我有一段时间没有使用它了。我只是在 GParted 上删除了它们,我不确定这是否是正确的方法。
这让我们处于我目前的情况。系统甚至无法加载 Grub 屏幕,我无法让 live USB 使用图形界面运行,只有命令提示符。我尝试过更新 Grub,尝试过“nomodeset”引导选项,尝试将所有文件移回原位并使用原始 fstab,但没有任何效果。
我被卡住了,如果没有更好的选择,我想重新安装操作系统。在 live USB 上恢复图形界面也将是一个很好的开始。
我已经使用 Ubuntu 10 年了,经常尝试根据自己的喜好对其进行自定义,并在在线资源的帮助下修复我所破坏的内容,但老实说 30% 的时间我不确定自己在做什么做(虽然我有兴趣从那些小冒险中学习)。
我的电脑是 2012 年左右的三星 Series 7 Chronos 笔记本电脑,如果有帮助的话……
我无法在 Ubuntu 16.04 中启动 TeamViewer。我想知道如何删除并重新安装。对此有什么帮助吗?
由于分数缩放,我尝试安装 19.04。安装过程中出现错误 https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1825420
在此之后,许多小错误。更新管理无法建立互联网连接,我的声卡无法正常工作,无法从桌面复制,文件夹无法打开...
我找到了这个教程 https://help.ubuntu.com/community/UbuntuReinstallation
我尝试 再次将稳定版本https://www.ubuntu.com/download/desktop/thank-you?country=DE&version=18.04.2&architecture=amd64下载 到“运行 UbuntuInstaller”。直接在迪斯科,它被安装为新CD。我可以打开 cd,但无法“运行”cd,或者找不到正确的信息,如何操作。
本教程不同,不推荐... https://linuxconfig.org/how-to-downgrade-ubuntu-linux-system-to-its-previous-version
我现在能做什么?我也不确定,因为除了 Windows 之外我确实有部分安装并且不想丢失我的文件(如果可能的话)。到目前为止,18.04 一切运行良好。
谢谢,最好的问候西蒙
我被迫重新安装 ubuntu,因为从 14.04 升级到 16.04 给我带来了问题。
但是,我想先将文件保存在我的主目录中,然后再继续重新安装。
使用“尝试 ubuntu”,我看不到我的文件,这与许多人在这里提出的建议不同。我能够下载 nautilus 等,但找不到 home/my_name。
有什么建议么?我有点绝望,这是漫长的一天。
编辑:我能够访问 gparted。我找到了我的主目录。我可以只连接一个硬盘驱动器并将这个目录复制到那个硬盘驱动器,这样我就可以保存我的主文件吗?这会覆盖我外部硬盘驱动器中的所有文件吗?