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

Matthew Wright's questions

Martin Hope
Matthew Wright
Asked: 2021-01-05 08:40:52 +0800 CST

Ubuntu服务器有两个IP地址不知道为什么

  • 0

我的 Ubuntu 服务器似乎有两个 IP 地址(192.168.0.108 和 192.168.0.109),但我无法摆脱一个。

设备和设置:

  • TP-LINK AX1500 路由器(处理 dhcp,DNS 重定向到 pihole)。
  • Ubuntu 服务器 20.04
    • Pihole 作为 DNS 安装并运行,当前已禁用阻止。TP-LINK 不做主机名解析,所以我使用 Pihole 创建本地 DNS 记录,以便所有设备都可以使用域/主机名而不是服务器 ip。

我从中看到的ip addr show

3: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 70:85:c2:a3:f3:fc brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.109/24 brd 192.168.0.255 scope global dynamic eno1
       valid_lft 7100sec preferred_lft 7100sec
    inet 192.168.0.108/24 brd 192.168.0.255 scope global secondary noprefixroute eno1
       valid_lft forever preferred_lft forever
    inet6 fe80::7285:c2ff:fea3:f3fc/64 scope link
       valid_lft forever preferred_lft forever

运行此命令时,它会暂时删除 109,但在重新启动后会立即恢复。我也无法再远程连接到服务器,因为其他设备仍然认为它是 109。

ip address del 192.168.0.109/24 dev eno1

我在 /etc/netplan/01-netcfg.conf 中看到的

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: yes

我在 /etc/dhcpcd.conf 中看到的

# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.

# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel

# Inform the DHCP server of our hostname for DDNS.
hostname

# Use the hardware address of the interface for the Client ID.
#clientid
# or
# Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.
# Some non-RFC compliant DHCP servers do not reply with this set.
# In this case, comment out duid and enable clientid above.
duid

# Persist interface configuration when dhcpcd exits.
persistent

# Rapid commit support.
# Safe to enable by default because it requires the equivalent option set
# on the server to actually work.
option rapid_commit

# A list of options to request from the DHCP server.
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
# Respect the network MTU. This is applied to DHCP routes.
option interface_mtu

我在 /etc/network/interfaces 中看到的(空)

# ifupdown has been replaced by netplan(5) on this system.  See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
#    sudo apt install ifupdown

我修改了 /etc/pihole/setupVars.conf ,它确实有 109 作为 IPV4_ADDRESS 并将其设置为 108 但重启后 109 仍然没有消失。

PIHOLE_INTERFACE=eno1
IPV4_ADDRESS=192.168.0.108/24
IPV6_ADDRESS=

此外,奇怪的是在 TP-LINK 路由器界面中似乎在 UI 的不同部分显示具有不同地址的服务器。在 Network Map -> Clients 列表中,服务器显示为 108。但是,在 Advanced -> Network -> DHCP Server -> DHCP Client List 中,服务器显示为 109。

我不知道下一步该做什么以及如何修复具有两个 IP 地址的服务器。

networking
  • 1 个回答
  • 1360 Views
Martin Hope
Matthew Wright
Asked: 2018-12-25 09:03:49 +0800 CST

尝试升级后 Mono 损坏,无法使用 apt

  • 10

我已经在我的 Ubuntu Server 18.10 上安装mono-complete并mono-devel安装了几个月,以运行一些依赖它的应用程序。我正在使用单声道 5.18.0.225。在事情破裂之前,我做了一个标准sudo apt update,在列表中看到了许多要升级的单声道包,然后做了一个sudo apt upgrade. 大多数安装都正常进行,然后终端不断吐出错误、错误和错误。无论我尝试做什么,几乎无穷无尽的错误都会一遍又一遍地打印出来几秒钟:

sudo apt upgrade
sudo apt --fix-broken install
sudo apt remove mono-complete mono-devel
sudo apt autoremove

似乎无法升级或删除。如果无法升级,我会尝试删除并尝试重新安装,但删除也失败了。

在错误中提到无法找到 gdb 或 lldb。然后我尝试手动制作和安装 gdb,因为我不能使用 apt... 尝试这样做会要求您运行sudo apt --fix-broken install哪个会吐出相同的错误。安装 gdb-8.2 成功。打印出来的错误略有变化,并包含对 gdb 的引用(因为现在它已安装)但仍然没有得到任何地方。

  • 单声道最初是如何中断的?
  • 为什么试图删除产生错误的包?
  • 解决这种情况的最佳行动方案是什么?我宁愿不必重新安装 Ubuntu Server 并备份所有内容。

对于错误中打印的内容(在 gdb 安装之前):

Aborted (core dumped)
E: installing Assembly /usr/share/cli-common/policies.d/libgtk2.0-cil/policy.2.8.gtk-sharp.dll failed
E: Installation of policy.2.8.gtk-sharp with /usr/share/cli-common/runtimes.d/mono failed
* Installing 1 assembly from policy.2.8.pango-sharp into Mono
Stacktrace:

/proc/self/maps:
41308000-41338000 rwxp 00000000 00:00 0
55b153398000-55b1537e1000 r-xp 00000000 08:02 3159129                    /usr/bin/mono-sgen

... cutting some of this out ...

7fb557c3b000-7fb557c88000 r--p 00000000 08:02 3160431                    /usr/lib/mono/gac/Mono.Security/4.0.0.0__0738eb9f132ed756/Mono.Security.dll
Memory around native instruction pointer (0x7fb5556e2c8f):
0x7fb5556e2c7f  20 48 09 d6 41 0f b6 53 05 48 c1 e2 28 48 09 f2   H..A..S.H..(H..
0x7fb5556e2c8f  66 41 0f 38 32 4b 06 66 0f 6f 05 b2 82 49 00 66  fA.82K.f.o...I.f
0x7fb5556e2c9f  0f 38 00 c8 66 48 0f 7e c8 66 48 0f 3a 16 ce 01  .8..fH.~.fH.:...
0x7fb5556e2caf  48 09 c6 48 09 d6 41 0f b6 c2 41 0f b6 53 09 48  H..H..A...A..S.H

Native stacktrace:

    /usr/bin/mono(+0x129f8d) [0x55b1534c1f8d]
    /usr/bin/mono(+0x12a295) [0x55b1534c2295]
    /usr/bin/mono(+0xbfd2f) [0x55b153457d2f]
    /usr/bin/mono(+0x414e8) [0x55b1533d94e8]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x12dd0) [0x7fb558343dd0]
    /usr/lib/mono/aot-cache/amd64/mscorlib.dll.so(+0x123c8f) [0x7fb5556e2c8f]

Waiting for dumping threads to resume


Debug info from gdb:

mono_gdb_render_native_backtraces not supported on this platform, unable to find gdb or lldb

=================================================================
Got a SIGILL while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted (core dumped)
E: installing Assembly /usr/share/cli-common/policies.d/libgtk2.0-cil/policy.2.8.pango-sharp.dll failed
E: Installation of policy.2.8.pango-sharp with /usr/share/cli-common/runtimes.d/mono failed
^[[1mdpkg:^[[0m error processing package mono-gac (--configure):
installed mono-gac package post-installation script subprocess returned error exit status 29
package-management apt mono 18.10
  • 8 个回答
  • 10877 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