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
Yakog
Asked: 2025-01-04 02:15:02 +0800 CST

为什么“cat”有时从另一个终端读取时会跳过字节,但 golang scan 函数却不会?

  • 6

一个问题涉及 pty-s(伪终端)以及 golang(cat)从它们读取的方式。

首先,我做了以下事情。

  1. 打开两个终端(dev/pts/0- 0 和dev/pts/1- 1)
  2. 然后我在第二个终端输入“cat dev / pts / 0”(因此第一个终端上写的任何内容都会显示在第二个终端上)
  3. 在第一个终端(TUI)开始写入

它通常在大多数情况下都能起作用,但有时会跳过一些字符。

更确切地说,对于第二个终端中未显示的字符,我有 echo,而对于显示的字符,我没有。就好像 echo 和 cat 在争夺字符。

但是,当我使用 golang 和 fmt 扫描函数时,每当我向终端(并因此向/dev/pts/0)写入某些内容时,扫描函数都会从中读取所有内容(没有丢失的字节)+输入的内容显示在 TUI 中(在这种情况下“echo”起作用)。

package main

import "fmt"

func main() {
    var input string

    fmt.Println("Enter text:")

    for {
        fmt.Scanln(&input)
        fmt.Println("You wrote:", input)
    }
}

因此,在这种情况下,echo 和 golang 之间的“竞争”似乎不存在……

我希望两种情况下的行为相同。具体而言,在两种情况下都读取所有字节,并在两种情况下都有(或没有)回声。

有什么区别?为什么“cat”从另一个终端读取时有时会跳过字节,但 golang scan 函数不会跳过字节?我以为 golang 只是像“cat”一样从“dev/pts/0”读取并给出结果。

gnome-terminal
  • 1 个回答
  • 111 Views
Martin Hope
Vic
Asked: 2025-01-03 02:40:16 +0800 CST

将 BackupPC 升级至 v4

  • 6

由于我无法让 BackupPC 在 Ubuntu 24 上运行,因此决定使用 Ubuntu 20,它具有可用于 BackupPC 的安装,我安装了它并可以运行,但意识到那是 BackupPC v3,并被要求安装 v4。

有没有办法使用 apt 或 apt-get 来“升级”到 BackupPC v4?或者有文档可以按照它来手动更新?

或者告诉我哪个版本的 Ubuntu 服务器附带 BackupPC 4。

20.04
  • 1 个回答
  • 26 Views
Martin Hope
Bettina
Asked: 2025-01-02 20:56:20 +0800 CST

每当我尝试运行例如 apt-get auotremove 时都会出现 tex-common 错误——Ubuntu 20.04 LTS

  • 5

很长一段时间以来,每当我尝试通过运行命令释放磁盘空间时,tex-common 都会出现错误sudo apt-get autoremove。错误如下:

dpkg: error processing package tex-common (--configure):
 installed tex-common package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
 tex-common

我尝试了sudo dpkg -C和sudo dpkg --configure tex-common以及sudo apt-get install --reinstall tex-common类似的输出。我还尝试重新配置区域设置(如本文《无法在 Ubuntu 20.04.2 LTS 上配置 tex-common》中所建议的),但这并不能解决问题。此外,我收到以下警告:

perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = "en_US.UTF-8",
    LC_TIME = "de_AT.UTF-8",
    LC_MONETARY = "de_AT.UTF-8",
    LC_ADDRESS = "de_AT.UTF-8",
    LC_TELEPHONE = "de_AT.UTF-8",
    LC_NAME = "de_AT.UTF-8",
    LC_MEASUREMENT = "de_AT.UTF-8",
    LC_IDENTIFICATION = "de_AT.UTF-8",
    LC_NUMERIC = "de_AT.UTF-8",
    LC_PAPER = "de_AT.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

我猜我遇到的错误与 texlive 安装有关。我目前使用位于 /usr/local/texlive 的 texlive 2023。但是,tex-common 位于 /usr/share/tex-common。我大约 1.5 年前升级到 texlive 2023,一开始一切都运行顺利(就我记得)。

我不知道如何解决这个问题,也不想让事情变得更糟(可能比我已经做的更糟)。因此,我恳请社区提供帮助。如果需要额外的输出或信息,请告诉我。

20.04
  • 1 个回答
  • 27 Views
Martin Hope
TGandhi
Asked: 2025-01-02 09:41:09 +0800 CST

使用不同方法时 shell 打印/回显/输出乱序

  • 5

已解决,已添加更新脚本- 感谢 @steeldriver 和 @user10489

Shell 打印输出混乱并且缺少一些信息。

我对 Linux 还很陌生,还处于复制/粘贴并查看结果的阶段。
我已经尝试过谷歌搜索,但无济于事。

我正在运行一个脚本,它采用多种方式返回当前用户。
该脚本使用

  • 直接呼叫
  • 使用调用sudo
  • 使用调用sudo su -

每个方法都应该返回 7 个值,但第一个和第二个方法返回 5 个值,第三个方法返回全部 7 个值。

有问题的脚本:

#!/usr/bin/env bash

echo ""

echo "GET USER - DIRECT"
echo ""
whoami
echo $USER
id -u -n
logname
ps -o user= -p $$ | awk '{print $1}'
echo $SUDO_UID
echo $SUDO_USER

echo ""
read -p "Press enter to continue"
echo -e "\n"

echo "GET USER - SUDO"
echo ""
sudo whoami
sudo echo $USER
sudo id -u -n
sudo logname
sudo ps -o user= -p $$ | awk '{print $1}'
sudo echo $SUDO_UID
sudo echo $SUDO_USER

echo ""
read -p "Press enter to continue"
echo -e "\n"

echo "GET USER - SUDO SU -"
echo ""
sudo su -c 'whoami; echo $USER; id -u -n; logname; ps -o user= -p $$ | awk "{print $1}"; echo $SUDO_UID; echo $SUDO_USER; echo ""'
echo -e "\n"

我得到的输出:

player1@Arcade:~/Desktop$ ./testuser.sh

GET USER - DIRECT

player1
player1
player1
player1
player1



Press enter to continue


GET USER - SUDO

[sudo] password for player1: 
root
player1
root
player1
player1



Press enter to continue


GET USER - SUDO SU -

root
root
root
player1
root
1000
player1



我在这里遗漏了什么?我的假设是直接调用$SUDO_UID和与$SUDO_USER权限有关。但是打印输出的顺序仍然让我感到困惑。

编辑:

理解用法sh -c、正确引用和访问 $SUDO_xxxxx 变量就成功了。
另外,我无法正确计数。该脚本旨在返回 7 个值,而不是 6 个。
更新后的脚本现在运行正常。
感谢你们的帮助!

我更新的脚本:

#!/usr/bin/env bash

echo ""

echo "GET USER - DIRECT"
echo ""
whoami
echo $USER
id -u -n
logname
ps -o user= -p $$ | awk '{print $1}'
sh -c 'echo $SUDO_UID'
sh -c 'echo $SUDO_USER'

echo ""
read -p "Press enter to continue"
echo -e "\n"

echo "GET USER - SUDO"
echo ""
sudo whoami
sudo echo $USER
sudo id -u -n
sudo logname
sudo ps -o user= -p $$ | awk '{print $1}'
sudo sh -c 'echo $SUDO_UID'
sudo sh -c 'echo $SUDO_USER'

echo ""
read -p "Press enter to continue"
echo -e "\n"

echo "GET USER - SUDO SU -"
echo ""
sudo su -c 'whoami'
sudo su -c 'echo $USER'
sudo su -c 'id -u -n'
sudo su -c 'logname'
sudo su -c 'ps -o user= -p $$ | awk '"'"'{print $1}'"'"
sudo su -c 'sh -c '"'"'echo $SUDO_UID'"'"
sudo su -c 'sh -c '"'"'echo $SUDO_USER'"'"
echo -e "\n\n"


我的更新输出:

player1@Arcade:~/Desktop$ ./testuser.sh

GET USER - DIRECT

player1
player1
player1
player1
player1



Press enter to continue


GET USER - SUDO

[sudo] password for player1: 
root
player1
root
player1
player1
1000
player1

Press enter to continue


GET USER - SUDO SU -

root
root
root
player1
root
1000
player1




command-line
  • 1 个回答
  • 40 Views
Martin Hope
user149408
Asked: 2025-01-01 23:54:37 +0800 CST

取消配对后无法与 UE MEGAOOM 配对

  • 5

在使用 UE MEGABOOM 时遇到问题后,我尝试取消配对并重新配对。但是,配对不断失败 - 我尝试过重新启动,以及使用 Blueman 和 进行配对bluetoothctl。

我收到的只是一条消息,告诉妈妈配对失败。bluetoothctl给了我:

Failed to pair: org.bluez.Error.AuthenticationFailed

怎么回事?

bluetooth
  • 1 个回答
  • 15 Views
Martin Hope
Abuu Ubaydah Ibn miftaahi
Asked: 2025-01-01 05:02:44 +0800 CST

无法在操作系统中启动

  • 5

我尝试在 Dell Inspiron N411Z 上安装 Ubuntu 24.04 LTS 作为唯一的操作系统,删除了计算机上的 Windows 10。安装正确完成,并提示我重新启动计算机。重新启动后,出现一条消息,提示“未找到操作系统”。通过 Live USB 后,我在终端中运行了启动修复。我得到了以下链接:

============================= Boot Repair Summary ==============================

Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub2 of
sda1 into the MBR of sda.
Grub-efi will not be selected by default because no ESP detected.
Additional repair will be performed: unhide-bootmenu-10s



======================= Reinstall the grub2 of /dev/sda1 =======================

chroot /mnt/boot-sav/sda1 grub-install --version
grub-install (GRUB) 2.12-1ubuntu7

==> Reinstall the GRUB of /dev/sda1 into the MBR of /dev/sda

chroot /mnt/boot-sav/sda1 grub-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.

chroot /mnt/boot-sav/sda1 update-grub
Sourcing file `/etc/default/grub'
Found linux image: /boot/vmlinuz-6.8.0-51-generic
Found initrd image: /boot/initrd.img-6.8.0-51-generic
Found memtest86+x64 image: /boot/memtest86+x64.bin
Adding boot menu entry for UEFI Firmware Settings ...

Unhide GRUB boot menu in sda1/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.

The boot files of [sda1 (end>100GB)] are far from the start of the disk. Your BIOS may not detect them. You may want to retry after creating a /boot partition (EXT4, >200MB, start of the disk). This can be performed via tools such as gParted. Then select this partition via the [Separate /boot partition:] option of [Boot Repair]. (https://help.ubuntu.com/community/BootPartition)

============================ Boot Info After Repair ============================

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 2048 
    of the same hard drive for core.img. core.img is at this location and 
    looks for (,gpt1)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_gpt biosdisk
    ---------------------------------------------------------------------------
 => Grub2 (v2.00) is installed in the MBR of /dev/sdb and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (hd0,msdos1)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    biosdisk fshelp fat exfat ext2 ntfs ntfscomp part_msdos
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 24.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda2: __________________________________________________________________________

    File system:       BIOS Boot partition
    Boot sector type:  Grub2's core.img
    Boot sector info: 

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT16
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sdb1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  MSWIN4.1: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /boot/grub/grub.cfg /efi/boot/bootx64.efi 
                       /efi/boot/grubx64.efi /efi/boot/mmx64.efi 
                       /efi/ubuntu/grub.cfg


================================ 1 OS detected =================================

OS#1 (linux):   Ubuntu 24.04.1 LTS on sda1

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: 2nd Generation Core Processor Family Integrated Graphics Controller from Intel Corporation
Live-session OS is Ubuntu 64-bit (Ubuntu 24.04.1 LTS, noble, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: A00(0.1) from Dell Inc.         
The firmware seems EFI-compatible, but this live-session is in Legacy/BIOS/CSM mode (not in EFI mode).



============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda : is-GPT,   hasBIOSboot,    has-noESP,  not-usb,    not-mmc, has-os,    no-wind,    2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1    : is-os,    64, apt-get,    grub-pc ,   grub2,  grub-install,   grubenv-ok, update-grub,    end-after-100GB
sda4    : no-os,    64, nopakmgr,   no-docgrub, nogrub, nogrubinstall,  no-grubenv, noupdategrub,   end-after-100GB

Partitions info (2/3): _________________________________________________________

sda1    : isnotESP, fstab-without-efi,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, ext4
sda4    : isnotESP, part-has-no-fstab,  no-nt,  no-winload, no-recov-nor-hid,   no-bmgr,    notwinboot, vfat

Partitions info (3/3): _________________________________________________________

sda1    : not--sepboot, with-boot,  fstab-without-boot, not-sep-usr,    with--usr,  fstab-without-usr,  std-grub.d, sda
sda4    : not--sepboot, no---boot,  part-has-no-fstab,  not-sep-usr,    no---usr,   part-has-no-fstab,  no--grub.d, sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 149.05 GiB, 160041885696 bytes, 312581808 sectors
Disk identifier: 90041FAB-0D02-4C5A-BECD-DC1D19B8C373
         Start       End   Sectors  Size Type
sda1       4096 195393535 195389440 93.2G Linux filesystem
sda2       2048      4095      2048    1M BIOS boot
sda3  195393536 206137343  10743808  5.1G Linux swap
sda4  206137344 207114239    976896  477M Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 29.3 GiB, 31457280000 bytes, 61440000 sectors
Disk identifier: 0x43e21a5f
     Boot Start      End  Sectors  Size Id Type
sdb1  *     2048 61439935 61437888 29.3G  c W95 FAT32 (LBA)

parted -lm (filtered): _________________________________________________________

sda:160GB:scsi:512:512:gpt:ATA TOSHIBA MK1655GS:;
2:1049kB:2097kB:1049kB:::bios_grub;
1:2097kB:100GB:100GB:ext4::;
3:100GB:106GB:5501MB:linux-swap(v1)::swap;
4:106GB:106GB:500MB:fat16::;
sdb:31.5GB:scsi:512:512:msdos:VendorCo ProductCode:;
1:1049kB:31.5GB:31.5GB:fat32::boot, lba;

Free space >10MiB: ______________________________________________________________

sda: 101130MiB:152628MiB:51498MiB

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL       PARTLABEL
sda                                                                                                   
├─sda1 ext4     631cd7d1-f3ab-433c-b9ed-e0383c503145 ce0380db-e640-47d3-a24b-12cf80bd95b8             
├─sda2                                               430c3d46-cc39-4f55-9d55-873b898f7eea             
├─sda3 swap     c5c85f77-bb1f-47d4-a89b-49abf32e4140 03816061-8ed9-4d0f-97d4-f98e1097508a             
└─sda4 vfat     E850-1747                            2c2ee8d9-4258-41d4-a15a-e885d3da7481             
sdb                                                                                                   
└─sdb1 vfat     DE6E-1C2E                            43e21a5f-01                          UBUNTU 24_0 

Mount points (filtered): _______________________________________________________

                        Avail Use% Mounted on
/dev/sda1               81.2G   6% /mnt/boot-sav/sda1
/dev/sda4              476.7M   0% /mnt/boot-sav/sda4
/dev/sdb1               23.5G  20% /cdrom

Mount options (filtered): ______________________________________________________

/dev/sda1              ext4            rw,relatime
/dev/sda4              vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sdb1              vfat            ro,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

====================== sda1/boot/grub/grub.cfg (filtered) ======================

Ubuntu   631cd7d1-f3ab-433c-b9ed-e0383c503145
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda1/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during curtin installation
/dev/disk/by-uuid/631cd7d1-f3ab-433c-b9ed-e0383c503145 / ext4 defaults 0 1
/dev/disk/by-uuid/c5c85f77-bb1f-47d4-a89b-49abf32e4140 none swap sw 0 0

======================= sda1/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Ubuntu} ) 2>/dev/null || echo Ubuntu`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_OS_PROBER=false

==================== sda1: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
  54.141265869 = 58.133741568   boot/grub/grub.cfg                             1
  54.135417938 = 58.127462400   boot/grub/i386-pc/core.img                     1
  81.234642029 = 87.225032704   boot/vmlinuz                                   1
  81.234642029 = 87.225032704   boot/vmlinuz-6.8.0-51-generic                  1
  81.234642029 = 87.225032704   boot/vmlinuz.old                               1
   1.250682831 = 1.342910464    boot/initrd.img                                5
   1.250682831 = 1.342910464    boot/initrd.img-6.8.0-51-generic               5
   1.250682831 = 1.342910464    boot/initrd.img.old                            5

===================== sda1: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 18133 Apr  4  2024 10_linux
-rwxr-xr-x 1 root root 43202 Apr  4  2024 10_linux_zfs
-rwxr-xr-x 1 root root 14513 Apr  4  2024 20_linux_xen
-rwxr-xr-x 1 root root   786 Apr  4  2024 25_bli
-rwxr-xr-x 1 root root 13120 Apr  4  2024 30_os-prober
-rwxr-xr-x 1 root root  1174 Apr  4  2024 30_uefi-firmware
-rwxr-xr-x 1 root root   722 Apr  5  2024 35_fwupd
-rwxr-xr-x 1 root root   214 Apr  4  2024 40_custom
-rwxr-xr-x 1 root root   215 Apr  4  2024 41_custom

====================== sdb1/boot/grub/grub.cfg (filtered) ======================

Try or Install Ubuntu
Ubuntu (safe graphics)
Boot from next volume
UEFI Firmware Settings
Test memory

===================== sdb1/efi/ubuntu/grub.cfg (filtered) ======================

Ubuntu

==================== sdb1: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1

如果问题仍然存在,请进行进一步的故障排除。

我仍然遇到同样的问题Operating System not found。

boot
  • 1 个回答
  • 55 Views
Martin Hope
ihorc
Asked: 2025-01-01 02:42:36 +0800 CST

PPA 中的最新软件包版本无法用于安装 Ubuntu 24.04

  • 6

我想在 Ubuntu 24.04 上从https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable安装最新的 qBittorrent (5.0.3)

我看到这个版本在 repo 中适用于多种架构:
qbittorrent 1:5.0.3.99~202412290749-8437-35dce07c6~ubuntu24.10.1 qBittorrent Team (2024-12-29)

但出于某种原因,apt即使在更新 repos 之后,我的仍然显示此信息:

~ sudo apt upgrade qbittorrent
qbittorrent is already the newest version (1:4.6.7.99~202411110115-8155-91943e481~ubuntu24.04.1).

~ sudo apt-cache policy qbittorrent
qbittorrent:
  Installed: 1:4.6.7.99~202411110115-8155-91943e481~ubuntu24.04.1
  Candidate: 1:4.6.7.99~202411110115-8155-91943e481~ubuntu24.04.1
  Version table:
 *** 1:4.6.7.99~202411110115-8155-91943e481~ubuntu24.04.1 500
        500 https://ppa.launchpadcontent.net/qbittorrent-team/qbittorrent-stable/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status
     4.6.3-1build2 500
        500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages

为什么无法安装?
我想我可以手动下载并安装 .deb,但为什么它没有显示出来?

apt
  • 1 个回答
  • 29 Views
Martin Hope
xtropicalsoothing
Asked: 2025-01-01 02:23:10 +0800 CST

如何在 Ubuntu 上安装 AtomicParsley?

  • 5

他们在官方 Github repo(https://github.com/wez/atomicparsley)中说道:

Linux(x86-64):

下载AtomicParsleyLinux.zip文件并解压AtomicParsley

然后呢?我要如何处理该AtomicParsley文件才能真正安装它?以便其他程序在运行时可以使用它?

software-installation
  • 1 个回答
  • 52 Views
Martin Hope
birdpoolcleaner
Asked: 2024-12-31 06:37:57 +0800 CST

Xubuntu Desktop 24.04 使用实时 USB 安装时在手动分区时卡住了。如何挂载 ext4 分区?

  • 5

我有一台装有 Windows 10 的笔记本电脑,一块硬盘。我给硬盘分区(保留 Windows 分区),使用交换分区和主 ext4 分区。

分区硬盘驱动器

开始从实时 USB 安装 Xubuntu。选择手动分区。

手动安装

我将 ext4 设置为在根目录下挂载。

设置_ext4_to_mount_at_root

此刻我无法继续。

无法继续安装

ext4 分区似乎没有挂载。我尝试了类似问题中的一些方法,但我不知道挂载在哪里。需要帮助。

Xubuntu 安装后,我假设 grub2 将自动接管启动。最后我将得到如下结果:

垫片64

安装期间出现 Grub2 错误:

grub2_error

dual-boot
  • 1 个回答
  • 115 Views
Martin Hope
Ken Mandelberg
Asked: 2024-12-31 02:23:10 +0800 CST

在 Ubuntu 24.04 上永久添加第二个名称服务器

  • 5

我需要添加第二个名称服务器。我可以在 resolve.conf 中临时添加,但我想要一个重启后仍然有效的解决方案。

当自动关闭时,设置 GUI 会填写 DNS,但这似乎没有任何作用。

dns
  • 3 个回答
  • 81 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