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 / 问题

全部问题(ubuntu)

Martin Hope
user
Asked: 2024-09-15 22:42:18 +0800 CST

在 WSL 中删除 VS Code

  • 6

在运行 Ubuntu 24.04 的 WSL 中输入后,code .VS Code 会自动安装。我现在正尝试卸载它,但在任何地方都找不到它。sudo apt purge code、、和都告诉我代码未安装。其他名称也是如此,包括和。当我输入时,VS Code 会打开。它显然已安装。sudo apt-get purge codesudo dpkg --purge codesudo snap remove --purge codevscodevisual-studio-codecode .

我想保留 Windows 版 VS Code,但删除其 Linux 安装。你知道我该怎么做吗?

编辑:

澄清评论中的问题:

  1. 我只是输入了code .,没有其他内容。出乎意料的是,这足以触发安装。此行为可能是 WSL 特有的。
  2. snap list告诉我没有安装 snap。任何安装的东西都sudo snap install --classic应该显示在那里。
24.04
  • 1 个回答
  • 48 Views
Martin Hope
Halacs
Asked: 2024-09-15 05:03:59 +0800 CST

自内核升级以来,VL805/806 xHCI USB 3.0 控制器出现故障

  • 6

我有 PCI-E USB 扩展卡,在内核更新后无法正常工作:检测到 USB 设备但立即断开连接。这意味着我无法在该扩展卡中使用无线耳机的 USB 棒,只能在主板的 USB 插槽中使用。

我遇到此问题是因为我的 Ubuntu 22.04 LTS 中安装了 linux-image-6.8.0-40-generic 内核包,之后又在 Ubuntu 24.04 LTS 中安装了 6.8.0-44-generic。

知道如何修复它吗?

5:00.0 USB controller: VIA Technologies, Inc. VL805/806 xHCI USB 3.0 Controller (rev 01)

消息:

[   68.549318] xhci_hcd 0000:02:00.0: xHCI host not responding to stop endpoint command
[   68.613928] xhci_hcd 0000:02:00.0: Host halt failed, -110
[   68.613931] xhci_hcd 0000:02:00.0: xHCI host controller not responding, assume dead
[   68.613943] xhci_hcd 0000:02:00.0: HC died; cleaning up
drivers
  • 1 个回答
  • 75 Views
Martin Hope
TRiG
Asked: 2024-09-15 03:40:29 +0800 CST

我可以只从旧版 Thunderbird 导入实时账户吗?

  • 6

我升级了 Ubuntu,我的 Thunderbird 丢失了所有邮件帐户。(我有一个配置文件,但里面有多个邮件帐户。)一些搜索显示,新版 Snap 版 Thunderbird 将其设置存储在不同的位置。我或许可以将旧目录复制到那里,看看它是否可行,但查看当前目录时,发现有ImapMail很多不再存在的旧邮件帐户的目录,我想也许从头开始会更好。我能否轻松地从旧位置提取实际的邮件帐户(帐户名称和登录详细信息),并将它们放在新目录中,以便再次同步 IMAP 电子邮件?


顺便说一句,这似乎是升级过程中的一个错误。Ubuntu 升级后旧邮件帐户不应该丢失。我应该在某处报告这个问题吗,还是已经知道了?

upgrade
  • 1 个回答
  • 46 Views
Martin Hope
bragdon
Asked: 2024-09-15 01:46:46 +0800 CST

dnsmasq 返回 HTTPS 而不是 NODATA

  • 5

我正在尝试使用 dnsmasq 在 ubuntu 服务器上为连接到 VPN 的人们设置 DNS。我不希望人们从此 VPN 搜索成人内容网站。

因此我安装了 dnsmask 并将其设置为使用主机列表,禁止大多数已知的成人内容网站:https://github.com/Sinfonietta/hostfiles/blob/master/pornography-hosts

对于 pornhub.com 它正在运行并且我收到以下日志:

dnsmasq[2438]: query[HTTPS] pornhub.com from 10.8.0.4
dnsmasq[2438]: forwarded pornhub.com to x:x:x:x:x:x:x:x
dnsmasq[2438]: query[A] pornhub.com from 10.8.0.4
dnsmasq[2438]: /etc/hosts-porn-content pornhub.com is 0.0.0.0
dnsmasq[2438]: reply pornhub.com is NODATA

但是,由于某种原因,当某个网站可以通过 ipv6 解析时,客户端仍然可以访问该网站。例如,即使 dnsmasq 在 /etc/hosts-porn-content 中找到配置,hanime.tv 仍可解析:

dnsmasq[2438]: query[HTTPS] hanime.tv from 10.8.0.4
dnsmasq[2438]: forwarded hanime.tv to x:x:x:x:x:x:x:x
dnsmasq[2438]: query[A] hanime.tv from 10.8.0.4
dnsmasq[2438]: /etc/hosts-porn-content hanime.tv is 0.0.0.0
dnsmasq[2438]: reply hanime.tv is <HTTPS>

这是我的 dnsmasq 配置:

# On systems which support it, dnsmasq binds the wildcard address,
# even when it is listening on only some interfaces. It then discards
# requests that it shouldn't reply to. This has the advantage of
# working even when interfaces come and go and change address. If you
# want dnsmasq to really bind only the interfaces it is listening on,
# uncomment this option. About the only time you may need this is when
# running another nameserver on the same machine.
bind-interfaces
clear-on-reload
filter-AAAA

# If you don't want dnsmasq to read /etc/hosts, uncomment the
# following line.
#no-hosts
# or if you want it to read another file, as well as /etc/hosts, use
# this.
addn-hosts=/etc/hosts-porn-content

systemd-resolve 配置:

[Resolve]
# Some examples of DNS servers which may be used for DNS= and FallbackDNS=:
# Cloudflare: 1.1.1.1#cloudflare-dns.com 1.0.0.1#cloudflare-dns.com 2606:4700:4700::1111#cloudflare-dns.com 2606:4700:4700::1001#cloudflare-dns.com
# Google:     8.8.8.8#dns.google 8.8.4.4#dns.google 2001:4860:4860::8888#dns.google 2001:4860:4860::8844#dns.google
# Quad9:      9.9.9.9#dns.quad9.net 149.112.112.112#dns.quad9.net 2620:fe::fe#dns.quad9.net 2620:fe::9#dns.quad9.net
DNS=127.0.0.1
#FallbackDNS=
#Domains=
#DNSSEC=no
#DNSOverTLS=no
#MulticastDNS=no
#LLMNR=no
#Cache=no-negative
#CacheFromLocalhost=no
DNSStubListener=no
#DNSStubListenerExtra=
#ReadEtcHosts=yes
#ResolveUnicastSingleLabel=no

OpenVPN 配置使用 DNS:

# If enabled, this directive will configure
# all clients to redirect their default
# network gateway through the VPN, causing
# all IP traffic such as web browsing and
# and DNS lookups to go through the VPN
# (The OpenVPN server machine may need to NAT
# or bridge the TUN/TAP interface to the internet
# in order for this to work properly).
push "redirect-gateway def1"

# Certain Windows-specific network settings
# can be pushed to clients, such as DNS
# or WINS server addresses.  CAVEAT:
# http://openvpn.net/faq.html#dhcpcaveats
# The addresses below refer to the public
# DNS servers provided by opendns.com.
push "dhcp-option DNS 10.8.0.1"

/etc/hosts内容:

127.0.0.1 localhost
127.0.1.1 serv

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

我尝试在运行 DNS 服务器的计算机上禁用 IPV6,但是客户端无法在网络上搜索任何内容...

并且 filter-AAAA 不起作用,至少我不明白它在做什么。

最后我通过执行以下操作清除 DNS 缓存:

resolvectl flush-caches
pkill -HUP dnsmasq
pkill -USR1 dnsmasq
server
  • 1 个回答
  • 102 Views
Martin Hope
White Owl
Asked: 2024-09-15 01:01:14 +0800 CST

升级到 24.04 LTS 后自动挂载不起作用

  • 5

我昨天刚刚从 22.04 LTS 升级到 24.04.1 LTS

我遇到的问题是它不再自动挂载网络驱动器。手动挂载可以正常工作。

在我的记录中/etc/fstab我有如下记录:

10.0.0.12:/Documents  /mnt/Documents  nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0
10.0.0.12:/Pictures   /mnt/Pictures   nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0

重启后这些挂载点没有被挂载,但是mount /mnt/Documents可以按预期工作。

在哪里查找?如何修复?

fstab
  • 1 个回答
  • 27 Views
Martin Hope
Lexible
Asked: 2024-09-15 00:14:05 +0800 CST

禁用窗口覆盖(24.04)

  • 5

正如它所言:在任何情况下,我都不希望自动平铺所有窗口(即与按键绑定的行为SUPER- 特别是在释放SUPER按键时 - 所有窗口变小并同时在整个屏幕上可见)。如何实现这一点?

我正在使用 24.04 和 X 上的 Gnome。

编辑:显然我所描述的行为被称为“概览”,而不是“耕作”

gnome
  • 2 个回答
  • 131 Views
Martin Hope
udippel
Asked: 2024-09-14 23:32:26 +0800 CST

Grub 菜单不再显示

  • 5

从昨天开始,我的 grub 启动菜单就不再显示了。24.4.1. PC 直接启动到 kubuntu。但是,分区应该在那里,因为 sudo update-grub显示:

Sourcing file `/etc/default/grub'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.8.0-44-generic
Found initrd image: /boot/initrd.img-6.8.0-44-generic
Found linux image: /boot/vmlinuz-6.8.0-41-generic
Found initrd image: /boot/initrd.img-6.8.0-41-generic
Found memtest86+x64 image: /memtest86+x64.bin
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows 10 on /dev/sda1
Adding boot menu entry for UEFI Firmware Settings ...
done

冷启动时也不显示菜单。W10 分区中的数据似乎在那里,我可以安装并读取它们。

该怎么办?

boot
  • 1 个回答
  • 40 Views
Martin Hope
Peter Rankin
Asked: 2024-09-14 22:25:29 +0800 CST

Ubuntu 不能再安装在较新的 Windows S 笔记本电脑上吗?

  • 5

我当时在商店想买一台廉价笔记本电脑来安装 Ubuntu(Lenovo Ideapad 1i 15.6 英寸,Intel Core i3-1215U,8GB 内存)。销售人员说,由于 Windows S,你无法在这台笔记本电脑上安装 Ubuntu,甚至 Geek Squad 也无法覆盖它,因为有一个错误。我问 Ubuntu 是否可以安装在华硕 Windows S 笔记本电脑上(几年前我曾这样做过,通过使用 Ubuntu 安装程序从拇指驱动器启动),但他说不行,基本上所有较新的 Windows S 笔记本电脑都是这样。

有人听说过这件事吗?有人知道解决这个问题的方法吗?


更新:我继续购买笔记本电脑,禁用安全启动,并像往常一样通过闪存驱动器安装程序安装 Ubuntu,现在它似乎运行正常!所以我想这只是一个不正确的谣言。

boot
  • 1 个回答
  • 44 Views
Martin Hope
sanjihan
Asked: 2024-09-14 06:00:26 +0800 CST

通过 ssh 使用密码执行 mariadb-dump 的安全问题

  • 10

我需要备份远程机器的 mariadb 数据库。我的计划是运行

ssh user@remoteip 'mariadb-dump -uuser -ppass --all-databases > backup.sql'

从我的本地机器。

我发现远程机器history没有被我刚刚执行的 mariadb-dump 命令填充。journalctl也没有包含该命令。

在 ssh 命令中传递 mariadb 密码时,我是否应该担心远程端的任何安全问题?还有更好的选择吗?

ssh
  • 2 个回答
  • 407 Views
Martin Hope
truth
Asked: 2024-09-13 18:50:02 +0800 CST

从 22.04 升级到 24.04 时出错

  • 8

我正在尝试从 22.04 LTS 升级到 24.04 LTS。我遇到了这个问题:

它说:

更新过程中出错

更新过程中出现问题。这通常是某种网络问题,请检查您的网络连接并重试。

但我的互联网没有任何问题。我尝试了以太网和 Wi-Fi,但都不起作用。

我单击“立即升级”按钮,然后它成功下载了一段时间的内容,然后它卡住了并抛出这个错误。

然后我看到了这一点:

错误2

然后一切都结束了。

还存在其他问题。但我没有找到解决办法。

这里要注意一点:软件包升级可以从终端进行,但 GUI 升级在某些日子会出现问题。

这是我运行后得到的结果sudo apt upgrade:

保留了以下软件包:python3-update-manager update-manager update-manager-core 升级了 0 个软件包,新安装了 0 个软件包,要删除 0 个软件包,并且未升级 3 个软件包。

以上信息仅提供背景信息,并非问题所在。但可能仍然相关。

我该如何解决这个问题并升级到 24.04 LTS?

networking
  • 2 个回答
  • 421 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