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-149408

user149408's questions

Martin Hope
user149408
Asked: 2025-03-17 05:41:52 +0800 CST

Ubuntu 24.04 不使用 OpenVPN 推送的 DNS 服务器

  • 5

我有两个 Ubuntu 24.04 系统,均通过 OpenVPN 连接到远程站点。OpenVPN 服务器配置为在远程站点推送自己的 DNS,并可通过 VPN 访问,并为远程端系统提供 RR。

其中一个客户端是 GUI 桌面系统,通过网络管理器配置了 OpenVPN。在此系统上,远程网络上的系统的 FQDN 解析毫无问题。

另一台服务器没有 GUI,我使用手动生成的配置文件设置了 OpenVPN。当我连接第二个客户端时,远程网络上的名称无法解析。我可以 ping 远程网络上的 IP 地址,nslookup在指示使用 VPN 上的 DNS 服务器后,我可以运行并查找私有 FQDN nslookup,但常规名称解析(例如按名称 ping 系统时)不起作用。

仅控制台系统上的配置文件:

client
remote '<PEER>'
ca '/etc/ssl/certs/chain_cert.pem'
cert '/etc/ssl/certs/<FQDN>_cert.pem'
key '/etc/ssl/private/<FQDN>_key.pem'
data-ciphers [REDACTED]
cipher [REDACTED]
auth [REDACTED]
dev tun
proto udp
verify-x509-name '<PEER>' name
tls-auth '/etc/openvpn/ssl/statickey.pem' 1
nobind
auth-nocache
script-security 2
persist-key
persist-tun
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

此手动配置适用于旧版 Debian,但不适用于 Ubuntu 24.04。

当我连接第二个客户端时,远程网络上的名称无法解析(resolvectl query给出Name '<FQDN>' not found),而在 GUI 客户端上一切正常。

resolvectl status在 GUI 客户端上给出以下内容:

Global
         Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (enp0s25)
    Current Scopes: none
         Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 3 (wlo1)
    Current Scopes: DNS
         Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: (local DNS server)
       DNS Servers: (local DNS server)
        DNS Domain: local

Link 4 (virbr0)
    Current Scopes: none
         Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 5 (anbox0)
    Current Scopes: none
         Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 7 (tun0)
    Current Scopes: DNS
         Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: (remote DNS server)
       DNS Servers: (remote DNS server)
        DNS Domain: (private domains)

在仅限控制台的系统上:

Global
         Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
  resolv.conf mode: stub

Link 2 (eth0)
    Current Scopes: DNS
         Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: (local DNS server)
       DNS Servers: (remote DNS server) (local DNS server)
        DNS Domain: (private domains)

Link 3 (wlan0)
    Current Scopes: none
         Protocols: -DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported

Link 4 (tun0)
    Current Scopes: DNS
         Protocols: +DefaultRoute -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: (remote DNS server)
       DNS Servers: (remote DNS server)

我在 ServerFault 上找到了一个答案,它建议使用nmcli,但该工具是的一部分network-manager,而该系统上未安装。

怎么回事?

dns
  • 1 个回答
  • 49 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
user149408
Asked: 2021-07-18 08:10:17 +0800 CST

进行更改后重新加载当前键盘布局

  • 1

我正在开发对键盘布局的错误修复。

目前,我没有添加任何新布局;我只是对现有的进行更改。我通过直接修改/usr/share/X11/xkb/symbols.

进行更改后,我想测试它是否按预期运行。通常这会影响我机器上已经处于活动状态的键盘布局。我在 X11 会话中,而不是在 tty 控制台上。

如何告诉 Ubuntu 从符号文件中重新加载当前的键盘布局?

keyboard-layout
  • 2 个回答
  • 123 Views
Martin Hope
user149408
Asked: 2021-07-16 12:31:57 +0800 CST

Ubuntu 中使用的键盘布局的上游源代码库在哪里?

  • 1

我知道 Ubuntu 中的键盘布局设置在两个不同的位置:keyboard-configuration/keyboard-setup仅在 ttys 和登录屏幕上生效(至少在 MATE 中,不确定其他风格),并且系统设置中有一个 GUI,它只影响桌面会话。

在哪里可以找到 Ubuntu 中使用的键盘布局(tty 和桌面会话)的上游源存储库?如果版本和风格之间存在差异,我对 Ubuntu MATE 20.04 特别感兴趣。现在我什至不知道要查找哪些包(甚至我本地系统上的文件)。

keyboard-layout
  • 1 个回答
  • 71 Views
Martin Hope
user149408
Asked: 2021-04-22 02:51:48 +0800 CST

更改登录屏幕的键盘布局

  • 1

我在 MATE 会话中更改了键盘布局。但是,当我注销(或重新启动)并尝试再次登录时,登录屏幕仍然具有以前的键盘布局。

如何更改登录屏幕的键盘布局?

20.04
  • 1 个回答
  • 846 Views
Martin Hope
user149408
Asked: 2020-11-02 05:10:29 +0800 CST

来自 Caja/Engrampa 的临时文件占用空间

  • 1

我试图使用 Caja 上下文菜单将大量数据从 MTP 卷添加到存档。我首先收到一个通知,说存档的文件正在被“复制”(不知道这意味着什么,可能是从 MTP 卷到文件系统然后被压缩?)这个过程花费了太长时间,所以我中止了它。

现在我看到我的磁盘上有额外的 20 GB 被占用,我看不到相关文件在哪里。我完全有理由相信这是由于归档操作中止,但在 /tmp 中找不到任何看起来相关的文件。

知道 Engrampa(或者可能是 Caja)将这些文件放在哪里,或者我如何删除它们?

file-roller ubuntu-mate caja
  • 1 个回答
  • 77 Views
Martin Hope
user149408
Asked: 2018-12-16 09:19:28 +0800 CST

Ubuntu 18.04 要求发行版升级

  • 0

我正在运行 Ubuntu MATE 18.04 LTS。一两周前,软件更新工具开始出现以下消息:

并非所有更新都可以安装。运行部分升级以安装尽可能多的更新。

这可能是由于:[...]

当我单击 Continue 时,它​​会尝试启动发行版升级,到目前为止我已经取消了。

我只为新的 LTS 版本启用了发行版升级(不会超过一年),因此我想知道这里应该进行什么样的发行版升级。更新者没有提到新的发行版是什么。

这里发生了什么?我怎样才能恢复正常的系统更新而不冒损坏任何东西的风险(或升级到我不想要的发行版)?

编辑:

输出apt update:

Hit:1 http://archive.canonical.com/ubuntu bionic InRelease
Hit:2 http://ubuntu.uni-klu.ac.at/ubuntu bionic InRelease                                                                           
Get:3 http://ubuntu.uni-klu.ac.at/ubuntu bionic-updates InRelease [88.7 kB]                                                         
Hit:4 https://apt.syncthing.net syncthing InRelease                                                           
Get:5 http://ubuntu.uni-klu.ac.at/ubuntu bionic-security InRelease [83.2 kB]                                  
Get:6 http://ubuntu.uni-klu.ac.at/ubuntu bionic-updates/main i386 Packages [404 kB]
Get:7 http://ubuntu.uni-klu.ac.at/ubuntu bionic-updates/main amd64 Packages [460 kB]
Get:8 http://ubuntu.uni-klu.ac.at/ubuntu bionic-updates/universe amd64 Packages [595 kB]
Get:9 http://ubuntu.uni-klu.ac.at/ubuntu bionic-updates/universe i386 Packages [589 kB]                                              
Fetched 2,220 kB in 10s (222 kB/s)                                                                                                   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
396 packages can be upgraded. Run 'apt list --upgradable' to see them.

输出apt upgrade:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  geoip-database-extra gir1.2-gmenu-3.0 libaccounts-glib0 libaccounts-qt5-1 libgnome-menu-3-0 libjs-coffeescript libjs-openlayers
  libsignon-extension1 libsignon-glib1 libsignon-plugins-common1 libsignon-qt5-1 libudev1:i386 libwireshark10 libwiretap7
  libwnck-common libwnck22 libwscodecs1 libwsutil8 python-aptdaemon python-aptdaemon.gtk3widgets python-attr python-automat
  python-click python-colorama python-constantly python-debian python-defer python-dirspec python-hyperlink python-incremental
  python-piston-mini-client python-pyasn1 python-twisted-bin python-xapian python3-blinker python3-jwt python3-oauthlib
  python3-piston-mini-client ruby-afm ruby-ascii85 ruby-blankslate ruby-classifier-reborn ruby-coderay ruby-coffee-script
  ruby-coffee-script-source ruby-colorator ruby-execjs ruby-fast-stemmer ruby-ffi ruby-hashery ruby-jekyll-coffeescript
  ruby-jekyll-feed ruby-jekyll-gist ruby-jekyll-paginate ruby-jekyll-sass-converter ruby-jekyll-watch ruby-json ruby-kramdown
  ruby-launchy-shim ruby-liquid ruby-listen ruby-mercenary ruby-mime-types ruby-mime-types-data ruby-multi-json ruby-oj ruby-parslet
  ruby-pdf-core ruby-pdf-reader ruby-pg ruby-posix-spawn ruby-prawn ruby-prawn-table ruby-pygments.rb ruby-rb-inotify ruby-rc4
  ruby-rdiscount ruby-redcarpet ruby-rouge ruby-safe-yaml ruby-sass ruby-sequel ruby-sequel-pg ruby-stringex ruby-toml ruby-ttfunk
  ruby-yajl signon-plugin-oauth2 signon-ui-service signon-ui-x11 signond software-center-aptdaemon-plugins unity-asset-pool
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  bubblewrap libgles1 libmaxminddb0 libqgsttools-p1 libqt5multimedia5-plugins libqt5multimediawidgets5 libwireshark11 libwiretap8
  libwscodecs2 libwsutil9 linux-headers-4.15.0-42 linux-headers-4.15.0-42-generic linux-image-4.15.0-42-generic
  linux-modules-4.15.0-42-generic linux-modules-extra-4.15.0-42-generic linux-tools-4.15.0-42 linux-tools-4.15.0-42-generic
  python3-netifaces
The following packages have been kept back:
  libssl-dev libssl1.1 nodejs nodejs-dev
The following packages will be upgraded:
  apparmor apport apport-gtk apt apt-transport-https apt-utils apturl apturl-common autopoint bind9-host binutils binutils-common
  binutils-x86-64-linux-gnu bsdutils chromium-codecs-ffmpeg-extra clamav clamav-base clamav-freshclam clamdscan cpp cpp-7 cups
  cups-bsd cups-client cups-common cups-core-drivers cups-daemon cups-ipp-utils cups-ppdc cups-server-common curl desktop-file-utils
  distro-info-data dnsutils dpkg dpkg-dev enigmail fdisk firefox firefox-locale-en flashplugin-installer fonts-liberation
  fonts-liberation2 fonts-noto-color-emoji fonts-opensymbol friendly-recovery fwupd g++ g++-7 gcc gcc-7 gcc-7-base gcc-8-base
  gcc-8-base:i386 gettext gettext-base ghostscript ghostscript-x gir1.2-javascriptcoregtk-4.0 gir1.2-packagekitglib-1.0
  gir1.2-snapd-1 gir1.2-totem-1.0 gir1.2-udisks-2.0 gir1.2-webkit2-4.0 git git-gui git-man git-svn gitk gnome-desktop3-data
  gnome-settings-daemon-schemas grub-common grub-pc grub-pc-bin grub2-common hwdata imagemagick imagemagick-6-common
  imagemagick-6.q16 initramfs-tools initramfs-tools-bin initramfs-tools-core kmod libapparmor-perl libapparmor1 libappstream4
  libapt-inst2.0 libapt-pkg5.0 libasan4 libatomic1 libbind9-160 libbinutils libblkid1 libblkid1:i386 libbrotli1 libcc1-0 libcilkrts5
  libclamav7 libconfuse-common libconfuse2 libcups2 libcups2:i386 libcupscgi1 libcupsimage2 libcupsmime1 libcupsppdc1
  libcurl3-gnutls libcurl4 libdns-export1100 libdns1100 libdpkg-perl libegl1 libfdisk1 libfreerdp-client2-2 libfreerdp2-2 libfwupd2
  libgcc-7-dev libgcc1 libgcc1:i386 libgfortran4 libgl1 libgl1:i386 libgles2 libglib2.0-0 libglib2.0-0:i386 libglib2.0-bin
  libglib2.0-data libglib2.0-dev libglib2.0-dev-bin libglvnd-core-dev libglvnd-dev libglvnd0 libglvnd0:i386 libglx0 libglx0:i386
  libgnome-desktop-3-17 libgomp1 libgs9 libgs9-common libimage-magick-perl libimage-magick-q16-perl libirs160 libisc-export169
  libisc169 libisccc160 libisccfg160 libitm1 libjavascriptcoregtk-4.0-18 libkmod2 libkpathsea6 libldap-2.4-2 libldap-common
  liblouis-data liblouis14 liblsan0 liblwres160 libmad0 libmagick++-6.q16-7 libmagickcore-6.q16-3 libmagickcore-6.q16-3-extra
  libmagickwand-6.q16-3 libmetacity1 libmount1 libmount1:i386 libmpx2 libmspack0 libmysqlclient20 libmysqlclient20:i386
  libnautilus-extension1a libnm0 libnss-systemd libobjc4 libopengl0 libpackagekit-glib2-18 libpam-systemd libparted-fs-resize0
  libparted2 libperl5.26 libplymouth4 libpoppler-glib8 libpoppler73 libpq-dev libpq5 libptexenc1 libpython2.7 libpython2.7-dev
  libpython2.7-minimal libpython2.7-stdlib libpython3-dev libpython3-stdlib libpython3.6 libpython3.6-dev libpython3.6-minimal
  libpython3.6-stdlib libquadmath0 libraw16 libreoffice-avmedia-backend-gstreamer libreoffice-base-core libreoffice-calc
  libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome libreoffice-gtk3 libreoffice-help-en-us libreoffice-impress
  libreoffice-math libreoffice-ogltrans libreoffice-pdfimport libreoffice-style-galaxy libreoffice-style-human
  libreoffice-style-tango libreoffice-writer libruby2.5 libsmartcols1 libsmbclient libsnapd-glib1 libsnmp-base libsnmp30 libssh-4
  libssh-gcrypt-4 libssl-doc libssl1.0.0 libssl1.0.0:i386 libstdc++-7-dev libstdc++6 libstdc++6:i386 libsynctex1 libsystemd0
  libsystemd0:i386 libtexlua52 libtexluajit2 libtotem0 libtsan0 libubsan0 libudev-dev libudev1 libudev1:i386 libudisks2-0 libuuid1
  libuuid1:i386 libvlc-bin libvlc5 libvlccore9 libwavpack1 libwbclient0 libwebkit2gtk-4.0-37 libwinpr2-2 libwireshark-data libwoff1
  libxkbcommon-dev libxkbcommon-x11-0 libxkbcommon0 linux-firmware linux-generic linux-headers-generic linux-image-generic
  linux-libc-dev linux-tools-common linux-tools-virtual man-db metacity-common module-init-tools mount netplan.io network-manager
  networkd-dispatcher nodejs-doc nplan nvidia-prime openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre openjdk-11-jre-headless
  openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless openssh-client openssh-server openssh-sftp-server
  openssl packagekit packagekit-tools parted perl perl-base perl-modules-5.26 plymouth plymouth-label plymouth-theme-ubuntu-text
  poppler-utils ppp python-apport python-apt python-apt-common python-lxml python-problem-report python-requests python-samba
  python2.7 python2.7-dev python2.7-minimal python3 python3-apport python3-apt python3-dev python3-distupgrade python3-distutils
  python3-gdbm python3-lib2to3 python3-louis python3-minimal python3-problem-report python3-requests python3-software-properties
  python3-tk python3-update-manager python3.6 python3.6-dev python3.6-minimal rfkill ruby2.5 ruby2.5-dev ruby2.5-doc samba-common
  samba-common-bin samba-libs secureboot-db shotwell shotwell-common smbclient software-properties-common software-properties-gtk
  ssh syncthing systemd systemd-sysv texlive-binaries thunderbird thunderbird-locale-en thunderbird-locale-en-us totem totem-common
  totem-plugins tzdata ubuntu-drivers-common ubuntu-keyring ubuntu-mono ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk
  udev udisks2 ufraw-batch unattended-upgrades uno-libs3 update-manager update-manager-core update-notifier update-notifier-common
  ure usbmuxd util-linux uuid-dev uuid-runtime valgrind virtualbox virtualbox-dkms virtualbox-qt vlc vlc-bin vlc-data vlc-l10n
  vlc-plugin-base vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output
  vlc-plugin-video-splitter vlc-plugin-visualization wavpack wireshark wireshark-common wireshark-qt xdg-utils xserver-common
  xserver-xorg-core xserver-xorg-legacy xul-ext-calendar-timezones xul-ext-gdata-provider xul-ext-lightning
392 upgraded, 18 newly installed, 0 to remove and 4 not upgraded.
Need to get 789 MB of archives.
After this operation, 539 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
upgrade ubuntu-mate 18.04
  • 1 个回答
  • 1063 Views
Martin Hope
user149408
Asked: 2018-05-05 04:08:15 +0800 CST

无法在 Ubuntu MATE 18.04 中恢复网络小程序

  • 7

从 Ubuntu MATE 16.04 升级到 18.04 后,通知区无法再获取网络小程序。

这个答案显示了我是如何在 15.04 中解决这个问题的,并且这个解决方案在升级到 15.10 和 16.04、IIRC 后幸存下来,无需进一步干预。

在 18.04 这不再有效:

  • ~/.config/autostart/nm-applet.desktop已经不在了,所以我从/etc/xdg/autostart/. 原始答案中描述的编辑不再适用,因此我保持文件不变。即使登录后,小程序也不会回来。
  • 当我尝试nm-applet从命令行手动启动时,它只会给我消息Gtk-Message: 13:48:39.885: Failed to load module "topmenu-gtk-module",然后退出并且不会显示任何网络小程序。
  • 如该答案所示,通知区域处于活动状态——我看到了音量小程序。
  • 如果重要的话,我有传统的面板布局。

附加信息:在另一台计算机上(也从 16.04 升级到 18.04,但使用熟悉的布局)小程序仍然存在。

是什么赋予了?

applet network-manager indicator mate 18.04
  • 1 个回答
  • 10388 Views
Martin Hope
user149408
Asked: 2018-05-04 11:25:16 +0800 CST

在没有 mozo 的情况下恢复 MATE 应用程序菜单

  • 3

在尝试通过 mozo 编辑 MATE 菜单时,我尝试将文件夹拖到不同的位置,接下来我知道整个菜单是空的。当我现在打开应用程序菜单时,我得到一个完全空的菜单。当我尝试编辑它时,mozo 立即崩溃。

我有经典的布局(应用程序、位置和系统菜单——后两个都可以,只是应用程序是空的。)

我怎样才能恢复我的菜单(最好是我上次的菜单,或者如果所有其他方法都失败,则默认)?

mate
  • 2 个回答
  • 2152 Views
Martin Hope
user149408
Asked: 2018-05-02 04:43:06 +0800 CST

升级到 Ubuntu MATE 18.04 后,登录屏幕中的键盘布局默认为 US

  • 2

我刚刚从 Ubuntu MATE 16.04 LTS 升级到 Ubuntu MATE 18.04 LTS(通过sudo do-release-upgrade)。

系统UI语言是英文,但是我有一个非美式键盘,安装16.04的时候选择了对应的布局。Ubuntu MATE 16.04 将在任何地方使用该键盘布局(tty、登录屏幕、GUI 用户会话)。升级到 18.04 后,登录界面是美式布局,每次开机都要选择本地布局。GUI 用户会话和 tty(即使在登录提示符下)默认使用本地布局。

如何更改 GUI 登录的键盘布局?这是 18.04 中的错误吗?

内容/etc/default/keyboard:

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="de"
XKBVARIANT="legacy"
XKBOPTIONS=""

BACKSPACE="guess"
keyboard-layout upgrade login mate 18.04
  • 1 个回答
  • 1312 Views
Martin Hope
user149408
Asked: 2018-03-23 09:21:18 +0800 CST

如何完全删除 MySQL,包括配置和数据?

  • 3

在全新的 Ubuntu 安装中,我设置了 root 密码,但忘记保存了。

由于我想记录设置步骤以供以后复制,我不想执行任何密码恢复步骤,而是删除系统上 MySQL 的所有痕迹并重新开始。

我努力了:

sudo apt-get remove dbconfig-mysql
sudo apt-get remove --purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean

(根据这个答案),以及一个额外的

rm -r /etc/mysql

但是当我之后安装 MySQL 时,我仍然没有得到密码提示,这表明仍然有一些 MySQL 剩余物可以从中恢复旧密码。

如何从这个系统中彻底清除 MySQL,以便下一次 MySQL 安装看起来像全新安装并再次提示我输入 root 密码?

server uninstall mysql 16.04
  • 1 个回答
  • 11187 Views
Martin Hope
user149408
Asked: 2016-07-31 16:40:24 +0800 CST

如何从一批照片中制作延时视频

  • 4

我正在尝试延时摄影。我从智能手机摄像头获取的图像在文件名中带有时间戳——因此它们是可排序的,但不是连续编号的,从而挫败了任何运行它们的尝试ffmpeg。

如何将这些图像处理成延时视频?操作系统是 Ubuntu MATE 16.04。

video-editor
  • 1 个回答
  • 8942 Views
Martin Hope
user149408
Asked: 2016-01-30 01:48:53 +0800 CST

使用 dpkg --set-selections 还原时出现“包不在数据库中”

  • 13

我刚刚从头开始重新安装了 Ubuntu MATE 15.10。我已按照此答案保存已安装软件包的列表并将其恢复到新安装的系统上。

但是,当我这样做时

sudo dpkg --set-selections < packages-backup.list

我收到一长串错误消息,如下所示:

dpkg: warning: package not in database at line 1417: sqlite3
dpkg: warning: package not in database at line 1417: sqliteman
dpkg: warning: package not in database at line 1417: sqliteman-doc

最后

dpkg: warning: found unknown packages; this might mean the available database is outdated, and needs to be updated through a frontend method

所以我跑了sudo apt-get update又跑,dpkg但我一直收到同样的错误。

对于列表中的每个包,我似乎都会收到此错误消息,包括相当不起眼的包,例如默认内核或 sqlite。此外,我没有在之前的设置中添加任何额外的 PPA,因此来自非默认存储库的包在这里不会成为问题。

作为测试,我尝试使用 安装其中一个“有sudo apt-get install问题的”软件包,它可以正常工作。

这里出了什么问题?

package-management
  • 5 个回答
  • 14467 Views
Martin Hope
user149408
Asked: 2015-07-16 01:50:44 +0800 CST

升级到 Ubuntu MATE 15.04 后通知区域缺少网络小程序

  • 1

我刚刚从 Ubuntu MATE 14.10 升级到 15.04。升级后,我之前在通知区域的网络管理员图标消失了。我怎样才能恢复它?

15.04
  • 1 个回答
  • 1144 Views
Martin Hope
user149408
Asked: 2014-06-29 03:21:44 +0800 CST

将 12.04(精确)更新为 Java 7 (OpenJDK)

  • 0

默认情况下,Ubuntu 12.04 附带 OpenJDK 6,它现在已经很老了,一些应用程序至少需要 Java 7。如何将 Ubuntu 12.04 安装更新到 Java 7?

12.04
  • 1 个回答
  • 917 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