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
    • 最新
    • 标签
主页 / user-470399

Damn Vegetables's questions

Martin Hope
Damn Vegetables
Asked: 2022-05-18 13:12:54 +0800 CST

Ubuntu 22.04。升级会安装新的 linux-headers 等。它们有必要吗?

  • 1

我试sudo apt update了一下说有东西要升级,所以我试upgrade了一下,输出如下。它说将安装以下新软件包并将使用额外的 560MB。如果它们是“新”而不是“升级”,那么当我只想更新系统时,为什么还要安装新软件包?

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-5.15.0-30 linux-headers-5.15.0-30-generic
  linux-image-5.15.0-30-generic linux-modules-5.15.0-30-generic
  linux-modules-extra-5.15.0-30-generic
The following packages will be upgraded:
  apport libldap-2.5-0 libldap-common libpcre3 libssl3 libxml2 linux-firmware
  linux-generic linux-headers-generic linux-image-generic needrestart openssl
  python3-apport python3-problem-report python3-software-properties
  software-properties-common
16 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 351 MB/352 MB of archives.
After this operation, 559 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
apt
  • 1 个回答
  • 537 Views
Martin Hope
Damn Vegetables
Asked: 2022-05-08 11:30:34 +0800 CST

从 Minimized Server 中删除 cloud-init 会将重要的网络包标记为删除

  • 1

我已经在使用默认设置安装的 Ubuntu Server 22.04 和 Ubuntu Server 22.04(最小化)上cloud-init使用本指南测试了删除。从完整的 Ubuntu Server卸载cloud-init不会将重要的软件包标记为要删除,但从最小化版本执行此操作会这样做。请参阅下面的屏幕截图。如果我sudo apt autoremove在那之后执行并重新启动服务器,则无法再访问 Internet,并且找不到所有与 Internet 相关的命令。

那是一个错误吗?如果没有,我可以在不破坏网络访问的情况下从最小化版本中删除 cloud-init 吗?我没有使用云。我只想要一个最低限度的 Ubuntu 桌面(我在其中添加了 XFCE)。

在此处输入图像描述

server
  • 2 个回答
  • 1063 Views
Martin Hope
Damn Vegetables
Asked: 2022-03-19 01:15:10 +0800 CST

使用 Caja 的“共享选项”共享文件夹时的 ID/密码是什么?

  • 0

Ubuntu 伴侣 20.04 LTS。我安装了caja-share扩展并安装了samba(但没有手动配置任何东西)。在 Caja 中,我右键单击一个目录,选择“共享选项”,然后选中“共享此文件夹”和“允许其他人创建/删除文件...”。我点击了“创建共享”。

现在,在另一个 Linux 系统 (Gnome) 上,我打开文件 (Nautilus) 并单击其他位置,然后键入服务器名称“smb://serveraddress”。它显示了两个目录,一个是我刚刚共享的目录,另一个是“print$”。我试图打开共享目录,它要求我输入 ID/密码。我输入了用于登录 Ubuntu Mate 服务器的相同 ID/密码,但它只是再次显示带有空输入字段的对话框。

我应该输入什么 ID/密码?Caja 是否没有设置此类 ID/密码,我是否必须手动设置 Samba?

20.04
  • 1 个回答
  • 225 Views
Martin Hope
Damn Vegetables
Asked: 2021-12-31 02:36:15 +0800 CST

mysql-server-8.0 错误阻止 apt 安装

  • -2

很长一段时间后我尝试更新 Ubuntu 20.04,但由于一些 MySQL 错误而失败。我在网上搜索,建议的答案是rmmysql 目录。我这样做了,但它仍然没有解决问题。

我试过dpkg --remove --force-all mysql-server-8.0了,但它说:

Unit mysql.service could not be found. dpkg: error while cleaning up:  
...post-installation script subprocess returned error

apt purge/upgrade/remove 失败

The package mysql-server-8.0 needs to be reinstalled

我不记得安装了 MySQL,但即使我安装了,我也不需要 MySQL。我根本不在乎。我怎样才能完全核对 MySQL 并重新开始工作?

test@ubuntu:~$ sudo apt install --reinstall mysql-server-8.0 
Reading package lists... Done 
Building dependency tree
Reading state information... Done
E: The package mysql-server-8.0 needs to be reinstalled, but an archive for it can't be found.
test@ubuntu: $ sudo apt purge mysql-server-8.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package mysql-server-8.0 needs to be reinstalled, but an archive for it can't be found.
test@ubuntu:~$ sudo apt install mysql-server --reinstall
Reading state information... Done
Reading package lists... Done 
Building dependency tree 
E: The package mysql-server-8.0 needs to be reinstalled, but an archive for it can't be found. 

~$ sudo apt purge mysql-server-core-8.0 -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  galera-3 libaio1 libcgi-fast-perl libcgi-pm-perl libconfig-inifiles-perl
  libevent-core-2.1-7 libevent-pthreads-2.1-7 libfcgi-perl
  libhtml-template-perl libllvm10 libllvm11 libmecab2 libreadline5
  libterm-readkey-perl linux-headers-5.4.0-42 linux-headers-5.4.0-42-generic
  linux-image-5.4.0-42-generic linux-modules-5.4.0-42-generic
  linux-modules-extra-5.4.0-42-generic mecab-ipadic mecab-ipadic-utf8
  mecab-utils socat
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED
  mysql-server-8.0* mysql-server-core-8.0*
0 to upgrade, 0 to newly install, 2 to remove and 3 not to upgrade.
1 not fully installed or removed.
After this operation, 137 MB disk space will be freed.
Do you want to continue? [Y/n] 
dpkg: error processing package mysql-server-8.0 (--remove):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting a removal
dpkg: too many errors, stopping
Errors were encountered while processing:
 mysql-server-8.0
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

和

$ sudo dpkg -i --force-all mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb
(Reading database ... 471728 files and directories currently installed.)
Preparing to unpack mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_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 mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb (--install):
 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 preset unit: File mysql.service: Link has been severed
/usr/bin/deb-systemd-helper: error: systemctl preset failed on mysql.service: No such file or directory
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:
 mysql-server-8.0_8.0.27-0ubuntu0.20.04.1_amd64.deb
apt
  • 1 个回答
  • 2474 Views
Martin Hope
Damn Vegetables
Asked: 2020-07-28 09:30:02 +0800 CST

为什么在磁盘中的自定义格式中禁用 Btrfs 和其他?

  • 0

Ubuntu 20.04 LTS。我尝试使用 Btrfs 格式化新磁盘,但它被禁用。

在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

btrfs disk 20.04
  • 1 个回答
  • 1473 Views
Martin Hope
Damn Vegetables
Asked: 2020-05-18 13:40:51 +0800 CST

VLC 似乎忽略了 Universal Access 中的“光标大小”设置

  • 1

Ubuntu 20.04LTS,VLC 3.0.10。我为鼠标光标大小设置了“大”,我在其他应用程序中没有遇到这个问题,但只有在 VLC 上,光标变得非常小。它似乎小于“默认”大小。

我怎样才能解决这个问题?

accessibility vlc mouse-pointer 20.04
  • 2 个回答
  • 656 Views
Martin Hope
Damn Vegetables
Asked: 2018-06-01 23:20:34 +0800 CST

安装 18.04 后加密整个磁盘

  • 7

当用户想要使用 GUI 时,Windows 或 macOS 提供了简单的方法来加密/解密系统驱动器(例如 Windows 上的 C:\)。系统驱动器加密似乎是 Ubuntu 安装 GUI 中的一个选项,但安装后没有 GUI 可以执行此操作,这与 Windows 或 macOS 不同。

正常安装Ubuntu后想加密怎么办?如果我想在安装后使用加密选项解密它怎么办?支持吗?我的意思是,无需重新安装系统。

似乎有一些关于安装后加密主目录的教程,而不是。那么,在 Ubuntu 上,建议只加密主目录而不是整个磁盘?

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

encryption
  • 2 个回答
  • 5211 Views
Martin Hope
Damn Vegetables
Asked: 2016-11-22 08:09:40 +0800 CST

是否可以指定日文假名/汉字字体替换?

  • 2

我希望操作系统使用英文显示 UI,但我需要在应用程序中读写日文并处理名称为日文的文件。

当应用程序使用西方字体并显示日文假名和汉字时,字体看起来不太好。在我看来,默认情况下,Ubuntu 只假设中文。有些汉字在我看来很奇怪。例如,“误解”中的“误”或“直接”中的“直”看起来不像日本使用的那个。

我的意思是,如果应用程序使用的是西方字体,它们看起来像这样: 在此处输入图像描述

如果我设置我喜欢的日文字体,它们看起来像这样: 在此处输入图像描述

有没有办法强制 Ubuntu 在以西方字体显示假名/汉字时使用特定的日文字体?也许系统无法判断特定文本是日文还是中文;但我不看中文,所以我不在乎真正的中文文本是否错误地以日文字体显示。

[针对评论添加]

下面是输出。我曾试图删除 Noto 字体系列,但当我安装一些应用程序时它们又回来了。我还尝试删除我根本无法阅读的语言字体。基本上我只想要西欧字体(英文、德文、法文等)、日文字体和韩文字体。

$ fc-match -s | head -15
DejaVuSans.ttf: "DejaVu Sans" "Book"
DejaVuSans-Bold.ttf: "DejaVu Sans" "Bold"
DejaVuSans-Oblique.ttf: "DejaVu Sans" "Oblique"
DejaVuSans-BoldOblique.ttf: "DejaVu Sans" "Bold Oblique"
n019003l.pfb: "Nimbus Sans L" "Regular"
DroidSansFallbackFull.ttf: "Droid Sans Fallback" "Regular"
NanumGothic.ttf: "NanumGothic" "Regular"
FreeSans.ttf: "FreeSans" "Regular"
FreeSansBold.ttf: "FreeSans" "Bold"
FreeMono.ttf: "FreeMono" "Regular"
FreeSerif.ttf: "FreeSerif" "Regular"
opens___.ttf: "OpenSymbol" "Regular"
DejaVuMathTeXGyre.ttf: "DejaVu Math TeX Gyre" "Regular"
DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
DejaVuSerif.ttf: "DejaVu Serif" "Book"
(the end)

[添加]

我在一个普通的日本问答网站(不是技术网站)上发布了一个问题。我问我第一个截图中的“误”和“直”是否在日本使用。我收到了两个回复,两个日本人都说他们在日本没有使用,他们猜测那些字母是简体中文字母。但我认为它们也不是简体中文字母,因为我看到左边的言部分在简体中文字母中变成了一个奇怪的单行。

fonts
  • 1 个回答
  • 1347 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