AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[reinstall](ubuntu)

Martin Hope
Yeet
Asked: 2022-11-03 07:14:04 +0800 CST

我可以从另一台电脑重新安装 Ubuntu 吗?

  • 5

我正在使用 Ubuntu 22.04,我搞砸了安装。有没有办法让我在另一台电脑上运行iso?

reinstall
  • 1 个回答
  • 37 Views
Martin Hope
krenkz
Asked: 2020-11-21 01:58:39 +0800 CST

启动 Ubuntu 20.04 出现黑屏后如何处理?

  • 0

Ubuntu 20.04 升级几天后,我进入了登录屏幕循环。我试图用这个来解决它。没有任何建议有帮助,在决赛之后sudo apt-get -y install lxdm我只会在启动时出现黑屏。我正在使用双启动笔记本电脑(win10,可以正常启动)并且能够访问 grub。当我尝试以恢复模式(虽然我真的不知道如何使用它)或使用较旧的内核版本启动时,我也遇到了黑屏。

我应该如何进行?重新安装Ubuntu还是尝试修复它更好(我不知道如何)?

编辑:黑屏之前的最后一件事是

/dev/sda11: clean, 403200/0536061 files, 7291387/34131712 blocks krenkz login:

sda11 是我的根分区

system-installation reinstall 20.04
  • 1 个回答
  • 779 Views
Martin Hope
andyczerwonka
Asked: 2020-09-01 10:02:37 +0800 CST

在现有 20.04 之上强制重新安装 20.04

  • 1

我成功地从 19.10 升级到了 20.04。然后我去寻找一些新主题,为了测试 POP_OS 主题,我不小心安装了ppa:system76/popPPA 存储库,并且在更新期间如果更新了很多东西,包括我的内核、库等。我真的只想要POP_OS 主题,但现在我觉得我处于一种奇怪的混合状态。我正在寻找一种强制重新安装干净的 20.04 的方法,而无需通过干净的安装完全清除我的安装。

reinstall 20.04
  • 2 个回答
  • 1823 Views
Martin Hope
Jam Roll
Asked: 2020-07-30 17:03:53 +0800 CST

MySQL 服务器拒绝卸载

  • 3

所以,我输入“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文件移至/tmpfrom /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

apt mysql reinstall 20.04
  • 2 个回答
  • 1906 Views
Martin Hope
Mario
Asked: 2020-05-27 17:13:19 +0800 CST

mysql-server-8.0冲突,由于与“自身”冲突而无法安装[重复]

  • 1
这个问题在这里已经有了答案:
mariadb 失败后安装 mysql-server 1 个回答
2年前关闭。

---我已经尝试过(两次)--- 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 的实例,

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/

十分感谢

package-management dpkg synaptic mysql reinstall
  • 1 个回答
  • 3041 Views
Martin Hope
LiCa
Asked: 2020-05-14 21:43:11 +0800 CST

如何在加密系统上重新安装 ubuntu focus 20.04?

  • 5

我是一个很长时间的 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 中做错了什么.

谢谢!

encryption dual-boot luks reinstall 20.04
  • 2 个回答
  • 1118 Views
Martin Hope
Emílio Dolgener Cantú
Asked: 2019-11-02 10:04:24 +0800 CST

如何从 live USB 的命令行重新安装 Ubuntu?

  • 1

我不确定这是解决我的问题的正确问题...

我有一个 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 笔记本电脑,如果有帮助的话……

grub2 live-usb radeon reinstall
  • 1 个回答
  • 125 Views
Martin Hope
engr_john
Asked: 2019-07-09 02:37:13 +0800 CST

无法启动 TeamViewer

  • 0

我无法在 Ubuntu 16.04 中启动 TeamViewer。我想知道如何删除并重新安装。对此有什么帮助吗?

uninstall teamviewer reinstall
  • 1 个回答
  • 1820 Views
Martin Hope
ABSimon
Asked: 2019-05-07 09:10:16 +0800 CST

如何在 19.04 之后重新安装 18.04 lts 有很多问题。安装在窗户旁边

  • 0

由于分数缩放,我尝试安装 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 一切运行良好。

谢谢,最好的问候西蒙

reinstall 19.04
  • 1 个回答
  • 1172 Views
Martin Hope
user1237300
Asked: 2019-05-05 12:10:17 +0800 CST

如何从尝试 ubuntu 访问主文件

  • 1

我被迫重新安装 ubuntu,因为从 14.04 升级到 16.04 给我带来了问题。

但是,我想先将文件保存在我的主目录中,然后再继续重新安装。

使用“尝试 ubuntu”,我看不到我的文件,这与许多人在这里提出的建议不同。我能够下载 nautilus 等,但找不到 home/my_name。

有什么建议么?我有点绝望,这是漫长的一天。

编辑:我能够访问 gparted。我找到了我的主目录。我可以只连接一个硬盘驱动器并将这个目录复制到那个硬盘驱动器,这样我就可以保存我的主文件吗?这会覆盖我外部硬盘驱动器中的所有文件吗?

nautilus home-directory root reinstall
  • 1 个回答
  • 2321 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve