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

Zaz's questions

Martin Hope
Zaz
Asked: 2018-11-10 17:15:23 +0800 CST

将 16.04 服务器更新到 18.04.1,现在我看到有关丢失文件、无法解析 dns、无法连接到总线的奇怪错误

  • 4

好的,所以这是从 16.04.1 LTS 升级到 18.04.1 LTS,服务器是无头的。升级完成并重新启动完成后,会发生以下情况:

尝试升级软件包只会导致以下结果:

~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  policykit-1 screen smartmontools
3 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,081 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Do you want to continue? [Y/n] y

(Reading database ... 159133 files and directories currently installed.)
Preparing to unpack .../smartmontools_6.5+svn4324-1_amd64.deb ...
Failed to connect to bus: No such file or directory
[...]

它正在谈论的是Dbus吗?无论如何,恢复怎么样?

~$ sudo apt update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
  Temporary failure resolving 'security.ubuntu.com'
Err:2 http://se.archive.ubuntu.com/ubuntu bionic InRelease
  Temporary failure resolving 'se.archive.ubuntu.com'
Err:3 http://se.archive.ubuntu.com/ubuntu bionic-updates InRelease
  Temporary failure resolving 'se.archive.ubuntu.com'
Err:4 http://se.archive.ubuntu.com/ubuntu bionic-backports InRelease
  Temporary failure resolving 'se.archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Failed to fetch http://se.archive.ubuntu.com/ubuntu/dists/bionic/InRelease  Temporary failure resolving 'se.archive.ubuntu.com'
W: Failed to fetch http://se.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease  Temporary failure resolving 'se.archive.ubuntu.com'
W: Failed to fetch http://se.archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease  Temporary failure resolving 'se.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

什么?dns坏了吗?

~$ wget www.google.com
--2018-11-10 01:55:16--  http://www.google.com/
Resolving www.google.com (www.google.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘www.google.com’

看起来像。嗯,ifconfig 不显示 dns。谷歌引导我回答这个问题,让我们试试。

~$ systemd-resolve --status
sd_bus_open_system: No such file or directory

好吧,我现在越来越迷茫了。谷歌现在发现这个问题,是关于docker的,这不是我的情况,但也提到了systemd isnt pid 1的问题:

~$ ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.1  0.1 159752  9116 ?        Ss   01:25   0:02 /sbin/init splash nomdmonddf nomdmonisw
root         2  0.0  0.0      0     0 ?        S    01:25   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S    01:25   0:00 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   01:25   0:00 [kworker/0:0H]
root         7  0.0  0.0      0     0 ?        S    01:25   0:00 [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    01:25   0:00 [rcu_bh]
root         9  0.0  0.0      0     0 ?        S    01:25   0:00 [migration/0]
root        10  0.0  0.0      0     0 ?        S    01:25   0:00 [watchdog/0]
root        11  0.0  0.0      0     0 ?        S    01:25   0:00 [watchdog/1]
[...]

我猜?这是根本问题,还是症状?我怎样才能解决这个问题?

upgrade systemd dbus 18.04
  • 1 个回答
  • 6966 Views
Martin Hope
Zaz
Asked: 2017-05-23 23:18:12 +0800 CST

我在文件服务器上禁用了 SMB1,现在客户端上安装的共享停止工作。如何在我的 ubuntu 客户端上挂载非 SMB1 文件共享?

  • 2

min protocol = SMB2由于某些原因,我最近在我的文件服务器(samba 4.3.9)上禁用了 SMB1(添加到 smb.conf)。

Windows 客户端仍然可以访问文件共享,但我在 ubuntu 客户端上也有一些挂载的网络文件夹,它们目前失败了。客户端当前正在使用 cifs 将共享挂载到 fstab 中的文件夹上。

我应该怎么做才能解决这个问题?在 Ubuntu Server 16.04.1 上永久挂载网络共享的最佳实践是什么?

networking
  • 1 个回答
  • 3771 Views
Martin Hope
Zaz
Asked: 2010-10-22 06:39:08 +0800 CST

如何将我的键盘布局更改为修改后的版本?

  • 11

现在,我的目标是将整个 xubuntu 安装的键盘布局更改为我自己的修改版本。我认为做到这一点的方法是制作一个 X11 键盘映射并加载它 - 但一如既往有一千种方法可以做事,我愿意接受建议。

我创建了一个修改过的 xkb 符号键盘映射,我想在我的 xubuntu 安装中使用它,但我在设置对话框的布局列表中看不到它。

我将以下内容放入/usr/share/X11/xkb/symbols/se

partial alphanumeric_keys
xkb_symbols "psvorak" {
name[Group1]="Sweden - PSvorak";
include "keypad(comma)"
include "level3(ralt_switch)"

key <AD01>  { [odiaeresis, Odiaeresis, dollar, none ]   };
<etc>
};

没有效果。

我还尝试根据http://www.linuxquestions.org/questions/linux-desktop-74/problem-creating-custom-xkb-layout-605568/重新生成symbols.dir,而 xkbcomp 说我没有错误文件,没有其他变化。它在 gui 中不可用,并且 setxkbmap(其语法非常混乱)仅响应“找不到文件”或“加载新键盘描述时出错”。

我确实设法创建了一个控制台键映射并使用 loadkeys 加载它......

charset "iso-8859-1"
keymaps 0-2,4-6,8,12
alt_is_meta
strings as usual
keycode   1 = Escape
    alt     keycode   1 = Meta_Escape
keycode   2 = one              exclam
    alt     keycode   2 = Meta_one
keycode   3 = two              quotedbl         at
    control keycode   3 = nul
    alt     keycode   3 = Meta_two
<etc>

...但它似乎只在Ctrl- Alt-F1控制台中工作。

keyboard-layout xorg xfce xubuntu
  • 2 个回答
  • 4637 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