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

dargaud's questions

Martin Hope
dargaud
Asked: 2021-06-15 13:38:43 +0800 CST

do-release-upgrade 失败并显示“没有候选版本”等

  • 0

这次失败的升级尝试是怎么回事?该系统目前完全是最新的aptitude full-upgrade

$ sudo do-release-upgrade 
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]                                                                                                                                
Get:2 Upgrade tool [1,276 kB]                                                                                                                                       
Fetched 1,276 kB in 0s (0 B/s)                                                                                                                                      
authenticate 'hirsute.tar.gz' against 'hirsute.tar.gz.gpg' 
extracting 'hirsute.tar.gz'

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Hit http://archive.ubuntu.com/ubuntu groovy InRelease                                                                                                               
Get:1 http://archive.ubuntu.com/ubuntu groovy-updates InRelease [115 kB]                                                                                            
Get:2 http://archive.ubuntu.com/ubuntu groovy-backports InRelease [101 kB]                                                                                          
Get:3 http://archive.ubuntu.com/ubuntu groovy-security InRelease [110 kB]                                                                                           
Fetched 326 kB in 0s (0 B/s)                                                                                                                                        
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

Checking for installed snaps

Calculating snap size requirements
No candidate ver:  akonadi-contacts-data
No candidate ver:  akonadi-mime-data
...400 lines like that...
No candidate ver:  vlc-nox
No candidate ver:  xfonts-mathml

Updating repository information
Get:1 http://archive.ubuntu.com/ubuntu hirsute InRelease [269 kB]                                                                                                   
Get:2 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [109 kB]                                                                                           
...
Get:110 http://archive.ubuntu.com/ubuntu hirsute-security/multiverse Translation-en [432 B]                                                                         
Get:111 http://archive.ubuntu.com/ubuntu hirsute-security/multiverse amd64 c-n-f Metadata [116 B]                                                                   
Fetched 184 MB in 6s (1,884 kB/s)                                                                                                                                   

Checking package manager
Reading package lists... Done    
Building dependency tree          
Reading state information... Done

Calculating the changes

Calculating the changes

Could not calculate the upgrade 

An unresolvable problem occurred while calculating the upgrade. 

If none of this applies, then please report this bug using the 
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If 
you want to investigate this yourself the log files in 
'/var/log/dist-upgrade' will contain details about the upgrade. 
Specifically, look at 'main.log' and 'apt.log'. 


Restoring original system state

Aborting
Reading package lists... Done    
Building dependency tree          
Reading state information... Done


$ cat /var/log/dist-upgrade/main.log     
2021-06-14 23:25:41,964 INFO Using config files '['./DistUpgrade.cfg', '/etc/update-manager/release-upgrades.d/ubuntu-advantage-upgrades.cfg', '/etc/update-manager/release-upgrades.d/neon.cfg']'
2021-06-14 23:25:41,964 INFO uname information: 'Linux antar 5.8.0-55-generic #62-Ubuntu SMP Tue Jun 1 08:21:18 UTC 2021 x86_64'
2021-06-14 23:25:42,407 INFO apt version: '2.1.10ubuntu0.3'
2021-06-14 23:25:42,407 INFO python version: '3.8.6 (default, May 27 2021, 13:28:02) 
[GCC 10.2.0]'
2021-06-14 23:25:42,409 INFO release-upgrader version '21.04.13' started
2021-06-14 23:25:42,419 INFO locale: 'en_SE' 'UTF-8'
2021-06-14 23:25:42,464 INFO screen could not be run
2021-06-14 23:25:42,519 DEBUG Using 'DistUpgradeViewText' view
2021-06-14 23:25:42,567 DEBUG enable dpkg --force-overwrite
2021-06-14 23:25:42,602 DEBUG creating statefile: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
2021-06-14 23:25:48,873 DEBUG lsb-release: 'groovy'
2021-06-14 23:25:48,874 DEBUG _pythonSymlinkCheck run
2021-06-14 23:25:48,875 DEBUG openCache()
2021-06-14 23:25:48,875 DEBUG quirks: running PreCacheOpen
2021-06-14 23:25:48,875 DEBUG running Quirks.PreCacheOpen
2021-06-14 23:25:49,653 DEBUG Comparing 5.8.0-50 with 
2021-06-14 23:25:49,653 DEBUG Comparing 5.8.0-55 with 5.8.0-50
2021-06-14 23:25:49,833 DEBUG /openCache(), new cache size 68613
2021-06-14 23:25:49,834 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2021-06-14 23:25:49,834 DEBUG checkViewDepends()
2021-06-14 23:25:49,838 DEBUG running doUpdate() (showErrors=False)
2021-06-14 23:25:52,426 DEBUG openCache()
2021-06-14 23:25:53,202 DEBUG Comparing 5.8.0-50 with 
2021-06-14 23:25:53,202 DEBUG Comparing 5.8.0-55 with 5.8.0-50
2021-06-14 23:25:53,329 DEBUG /openCache(), new cache size 68613
2021-06-14 23:25:53,330 DEBUG doPostInitialUpdate
2021-06-14 23:25:53,330 DEBUG quirks: running hirsutePostInitialUpdate
2021-06-14 23:25:53,330 DEBUG running Quirks.hirsutePostInitialUpdate
2021-06-14 23:25:55,104 DEBUG Snap audio-recorder is installed
2021-06-14 23:25:55,104 DEBUG Snap audio-recorder is not tracking the release channel
2021-06-14 23:25:55,362 DEBUG Snap core18 is installed
2021-06-14 23:25:55,362 DEBUG Snap core18 is not tracking the release channel
2021-06-14 23:25:55,625 DEBUG Snap fontvuer is installed
2021-06-14 23:25:55,625 DEBUG Snap fontvuer is not tracking the release channel
2021-06-14 23:25:55,794 DEBUG Snap gnome-3-28-1804 is installed
2021-06-14 23:25:55,794 DEBUG Snap gnome-3-28-1804 is not tracking the release channel
2021-06-14 23:25:55,989 DEBUG Snap gtk-common-themes is installed
2021-06-14 23:25:55,989 DEBUG Snap gtk-common-themes is not tracking the release channel
2021-06-14 23:25:56,140 DEBUG Snap shotcut is installed
2021-06-14 23:25:56,140 DEBUG Snap shotcut is not tracking the release channel
2021-06-14 23:25:56,301 DEBUG Snap snapd is installed
2021-06-14 23:25:56,301 DEBUG Snap snapd is not tracking the release channel
2021-06-14 23:25:57,480 DEBUG MetaPkgs: 
2021-06-14 23:26:03,159 DEBUG no PkgRecord found for 'akonadi-contacts-data', skipping 
2021-06-14 23:26:03,159 DEBUG no PkgRecord found for 'akonadi-mime-data', skipping 
...
2021-06-14 23:26:04,361 DEBUG no PkgRecord found for 'vlc-nox', skipping 
2021-06-14 23:26:04,382 DEBUG no PkgRecord found for 'xfonts-mathml', skipping 
2021-06-14 23:26:04,398 DEBUG Foreign: 
2021-06-14 23:26:04,398 DEBUG Obsolete: amarok-common banish404 clang-6.0 clang-7 cnijfilter-common cnijfilter-ip2800series cpp-5 drkonqi-pk-debug-installer fvd-module gcc-5 gcc-5-base gimp-plugin-userfilter:i386 google-chrome-stable google-earth-pro-stable ippusbxd kde-runtime-data kdelibs5-data libasan2 libavcodec57 libavformat57 libavutil55 libboost-date-time1.67.0 libboost-filesystem1.67.0 libboost-iostreams1.67.0 libboost-locale1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libcdio18 libcfitsio5 libcfitsio8 libclang-common-6.0-dev libclang-common-7-dev libclang1-6.0 libclang1-7 libcloog-isl4 libdc1394-22 libdouble-conversion1 libdvdcss-dev libdvdcss2 libebml4v5 libffi7 libfreerdp-cache1.1 libfreerdp-client1.1 libfreerdp-codec1.1 libfreerdp-common1.1.0 libfreerdp-core1.1 libfreerdp-crypto1.1 libfreerdp-gdi1.1 libfreerdp-locale1.1 libfreerdp-plugins-standard libfreerdp-primitives1.1 libfreerdp-rail1.1 libfreerdp-utils1.1 libgcc-5-dev libgit2-26 libhavege1 libhttp-parser2.7.1 libhunspell-1.6-0 libicu60 libicu66 libilmbase12 libisl15 libjavascriptcoregtk-3.0-0 libkaccounts1 libkf5libkdepimakonadi5 libkf5texteditor5-libjs-underscore libkf5torrent6 libkonq5-templates libllvm6.0 libllvm7 libmatroska6v5 libmpx0 libmysqlclient20 libntdb1 libntrack0 libopenexr22 libparse-debianchangelog-perl libpipewire-0.2-1 libplacebo7 libprotobuf-lite17 libprotobuf17 libqrencode3 libraw16 libre2-5 libservlet3.0-java libssl1.0.0 libswresample2 libtidy-0.99-0 libtinyxml2-6a libvpx1 libvpx5 libwebkitgtk-3.0-0 libwinpr-crt0.1 libwinpr-dsparse0.1 libwinpr-environment0.1 libwinpr-file0.1 libwinpr-handle0.1 libwinpr-heap0.1 libwinpr-input0.1 libwinpr-interlocked0.1 libwinpr-library0.1 libwinpr-path0.1 libwinpr-pool0.1 libwinpr-registry0.1 libwinpr-rpc0.1 libwinpr-sspi0.1 libwinpr-synch0.1 libwinpr-sysinfo0.1 libwinpr-thread0.1 libwinpr-utils0.1 libx264-152 libx264-155 libx265-146 libxfreerdp-client1.1 libzip4 llvm-6.0 llvm-6.0-dev llvm-6.0-runtime llvm-7 llvm-7-dev llvm-7-runtime multiarch-support ntrack-module-libnl-0 python-apt python-attr python-cffi-backend python-characteristic python-crypto python-cryptography python-dateutil python-dbus python-dnspython python-enum34 python-gi python-gobject python-gobject-2 python-httplib2 python-idna python-ipaddress python-mako python-openssl python-pyasn1 python-pyasn1-modules python-pyparsing python-service-identity python-sip python-talloc python-yaml python-zope.interface syslinux-legacy ttf-dejavu-core x11proto-damage-dev x11proto-fixes-dev xserver-xorg-video-intel-arbiter zoom
2021-06-14 23:26:04,398 DEBUG updateSourcesList()
2021-06-14 23:26:04,407 DEBUG rewriteSourcesList() with mirror_check
2021-06-14 23:26:04,408 DEBUG ['ubuntu-minimal', 'ubuntu-standard']
2021-06-14 23:26:04,408 DEBUG Checking pkg: ubuntu-minimal
2021-06-14 23:26:04,410 DEBUG Checking pkg: ubuntu-standard
2021-06-14 23:26:04,414 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy main restricted'
2021-06-14 23:26:04,415 DEBUG verifySourcesListEntry: deb http://archive.ubuntu.com/ubuntu hirsute main restricted
2021-06-14 23:26:04,415 DEBUG url_downloadable: http://archive.ubuntu.com/ubuntu/dists/hirsute/Release
2021-06-14 23:26:04,415 DEBUG s='http' n='archive.ubuntu.com' p='/ubuntu/dists/hirsute/Release' q='' f=''
2021-06-14 23:26:04,469 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute main restricted' updated to new dist
2021-06-14 23:26:04,469 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy main restricted'
2021-06-14 23:26:04,469 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute main restricted' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-updates main restricted'
2021-06-14 23:26:04,470 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-updates main restricted' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-updates main restricted'
2021-06-14 23:26:04,470 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-updates main restricted' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy universe'
2021-06-14 23:26:04,470 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute universe' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy universe'
2021-06-14 23:26:04,470 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute universe' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-updates universe'
2021-06-14 23:26:04,470 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-updates universe' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-updates universe'
2021-06-14 23:26:04,470 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-updates universe' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy multiverse'
2021-06-14 23:26:04,470 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute multiverse' updated to new dist
2021-06-14 23:26:04,470 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy multiverse'
2021-06-14 23:26:04,470 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute multiverse' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-updates multiverse'
2021-06-14 23:26:04,471 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-updates multiverse' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-updates multiverse'
2021-06-14 23:26:04,471 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-updates multiverse' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-backports main restricted universe multiverse'
2021-06-14 23:26:04,471 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-backports main restricted universe multiverse' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-backports main restricted universe multiverse'
2021-06-14 23:26:04,471 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-backports main restricted universe multiverse' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-security main restricted'
2021-06-14 23:26:04,471 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-security main restricted' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-security main restricted'
2021-06-14 23:26:04,471 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-security main restricted' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-security universe'
2021-06-14 23:26:04,471 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-security universe' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-security universe'
2021-06-14 23:26:04,471 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-security universe' updated to new dist
2021-06-14 23:26:04,471 DEBUG examining: 'deb http://archive.ubuntu.com/ubuntu groovy-security multiverse'
2021-06-14 23:26:04,472 DEBUG entry 'deb http://archive.ubuntu.com/ubuntu hirsute-security multiverse' updated to new dist
2021-06-14 23:26:04,472 DEBUG examining: 'deb-src http://archive.ubuntu.com/ubuntu groovy-security multiverse'
2021-06-14 23:26:04,472 DEBUG entry 'deb-src http://archive.ubuntu.com/ubuntu hirsute-security multiverse' updated to new dist
2021-06-14 23:26:04,474 DEBUG running doUpdate() (showErrors=True)
2021-06-14 23:27:32,408 DEBUG openCache()
2021-06-14 23:27:33,222 DEBUG Comparing 5.8.0-50 with 
2021-06-14 23:27:33,222 DEBUG Comparing 5.8.0-55 with 5.8.0-50
2021-06-14 23:27:33,329 DEBUG /openCache(), new cache size 69997
2021-06-14 23:27:33,330 DEBUG need_server_mode(): can not find a desktop meta package or key deps, running in server mode
2021-06-14 23:27:33,330 DEBUG quirks: running PreDistUpgradeCache
2021-06-14 23:27:33,330 DEBUG running Quirks.PreDistUpgradeCache
2021-06-14 23:27:33,330 INFO checking for python-dbg (auto_inst=False)
2021-06-14 23:27:33,330 INFO checking for python-doc (auto_inst=False)
2021-06-14 23:27:33,330 INFO checking for python-minimal (auto_inst=False)
2021-06-14 23:27:33,331 INFO checking for python-dev (auto_inst=False)
2021-06-14 23:27:33,331 INFO checking for libpython-dev (auto_inst=False)
2021-06-14 23:27:33,331 INFO checking for libpython-stdlib (auto_inst=False)
2021-06-14 23:27:33,331 INFO checking for libpython-dbg (auto_inst=False)
2021-06-14 23:27:33,331 INFO checking for python-dbg (auto_inst=True)
2021-06-14 23:27:33,331 INFO checking for python-doc (auto_inst=True)
2021-06-14 23:27:33,331 INFO checking for python-minimal (auto_inst=True)
2021-06-14 23:27:33,331 INFO checking for python-dev (auto_inst=True)
2021-06-14 23:27:33,331 INFO checking for libpython-dev (auto_inst=True)
2021-06-14 23:27:33,331 INFO checking for libpython-stdlib (auto_inst=True)
2021-06-14 23:27:33,331 INFO checking for libpython-dbg (auto_inst=True)
2021-06-14 23:27:35,786 DEBUG Running KeepInstalledSection rules
2021-06-14 23:27:36,427 DEBUG Kernel uname: '5.8.0-55-generic' 
2021-06-14 23:27:36,440 DEBUG nvidiaUpdate()
2021-06-14 23:27:37,369 INFO no old nvidia driver installed, installing no new
2021-06-14 23:27:37,370 DEBUG quirks: running PostDistUpgradeCache
2021-06-14 23:27:37,370 DEBUG running Quirks.PostDistUpgradeCache
2021-06-14 23:27:37,577 DEBUG Comparing 5.11.0-18 with 
2021-06-14 23:27:37,578 DEBUG Comparing 5.8.0-50 with 5.11.0-18
2021-06-14 23:27:37,578 DEBUG Comparing 5.8.0-55 with 5.11.0-18
2021-06-14 23:27:37,781 DEBUG blacklist expr 'kubuntu-desktop' matches 'kubuntu-desktop'
2021-06-14 23:27:37,781 DEBUG The package 'kubuntu-desktop' is marked for removal but it's in the removal blacklist
2021-06-14 23:27:37,811 ERROR Dist-upgrade failed: 'The package 'kubuntu-desktop' is marked for removal but it is in the removal blacklist.'
2021-06-14 23:27:37,811 DEBUG abort called
2021-06-14 23:27:37,813 DEBUG openCache()
2021-06-14 23:27:40,102 DEBUG Comparing 5.8.0-50 with 
2021-06-14 23:27:40,102 DEBUG Comparing 5.8.0-55 with 5.8.0-50
2021-06-14 23:27:40,241 DEBUG /openCache(), new cache size 68613
dargaud@antar:/tmp

$ cat /var/log/dist-upgrade/apt.log 
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
MarkInstall blender:amd64 < 2.83.5+dfsg-1build2 -> 2.83.5+dfsg-5build1 @ii umU Ib > FU=0
Installing libboost-locale1.74.0:amd64 as Depends of blender:amd64
    MarkInstall libboost-locale1.74.0:amd64 < none -> 1.74.0-8ubuntu2 @un uN Ib > FU=0
...a lot more stuff...
MarkDelete plasma-widgets-addons:amd64 < 4:5.19.5-0ubuntu1 | 4:5.21.4-0ubuntu1 @ii umH Ib > FU=0
Investigating (3) kubuntu-settings-desktop:amd64 < 1:20.10.1 -> 1:21.04.5 @ii umU Ib >
Broken kubuntu-settings-desktop:amd64 Depends on plasma-workspace:amd64 < 4:5.19.5-0ubuntu2 @ii mR > (>= 4:5.18.0~)
Considering plasma-workspace:amd64 6542 as a solution to kubuntu-settings-desktop:amd64 1
MarkKeep kubuntu-settings-desktop:amd64 < 1:20.10.1 -> 1:21.04.5 @ii umU Ib > FU=0
Removing kubuntu-settings-desktop:amd64 rather than change plasma-workspace:amd64
MarkDelete kubuntu-settings-desktop:amd64 < 1:20.10.1 | 1:21.04.5 @ii umH Ib > FU=0
Done
nvidia-driver-418
Log time: 2021-06-14 23:27:40.224004
do-release-upgrade
  • 1 个回答
  • 729 Views
Martin Hope
dargaud
Asked: 2020-05-12 12:47:53 +0800 CST

平均负载高但 CPU 低

  • 2

我正在尝试追踪一台旧笔记本电脑(10yo,4Gb 内存,2 个内核,Kubuntu 18.04)上的重复挂起,现在它每天会发生几次,适度使用(在 Firefox 中打开 <10 个标签,一堆其他 progs,没什么大不了的)。

有时我会收到 OOM,但在大多数情况下,用户界面会在恢复正常之前停止 1 到 30 分钟。这是最近发生的事情(过去 2 个月)。在大多数情况下,dmesg 或 syslog 中没有任何内容。

我一直试图诊断它但没有成功,但我注意到 htop 的一件事是平均负载跃升至 30 或更多,而累积 CPU 使用率保持在 10% 以下并且内存使用率 (Mem+Swap) 保持良好低于 4Gb。

第一个问题:平均负载与 CPU 使用率有何不同?第二个问题:我还能做什么?我可以运行一些压力计划并希望获得有意义的信息吗?

[编辑]仍在等待下一次崩溃,但我注意到swapiness为0。默认情况下不应该是60吗?

cpu-load memory-usage
  • 2 个回答
  • 6286 Views
Martin Hope
dargaud
Asked: 2019-12-13 12:12:38 +0800 CST

连接 USB 转以太网适配器后执行操作

  • 4

当我连接一个 USB 到以太网适配器(以前使用过)时,我收到一个 MAC 地址,然后如果另一端有连接的东西,我还会收到一个 IP 地址(在我的情况下为 192.168.1.1,配置为NetworkManager 中的静态)。另一方面,有各种仪器等待在该 PC 上运行的 DHCP 服务器为它们提供 IP。

问题是如果没有找到子网,DHCP 服务器会拒绝启动,因此在连接建立之前无法启动它。systemctl restart isc-dhcp-server.service从 NetworkManager 收到 IP 192.168.1.1 后,我该怎么办?

我想过使用 udev 规则,ATTR{address}=="f0:1f:af:3d:6c:e7" RUN+="systemctl restart isc-dhcp-server.service"但它在分配 IP 之前运行。是否有我可以使用的 udev 选项,或者我必须通过 systemd 或 NetworkManager 或其他方法使用其他方法?

services systemd dhcpd udev
  • 3 个回答
  • 1018 Views
Martin Hope
dargaud
Asked: 2017-02-21 09:09:03 +0800 CST

通过 ssh 的 RDP 停止工作

  • 1

我在 Ubuntu 服务器上运行一个无头 VM(一个旧的 WinXP)。我有一段时间没有使用它,我刚刚启动它,但它不会通过 ssh 隧道连接。

我像这样在服务器上启动虚拟机:

client $ ssh -CYL 3389:localhost:3389 dargaud@server
server $ VBoxManage startvm "OldXP" --type headless
server $ VBoxManage list runningvms
"OldXP" {ebb9b585-84b3-4057-8fc7-e3a43735abcd}
server $ VBoxManage list -l runningvms
...
VRDE: enabled (Address 0.0.0.0, Ports 3389, MultiConn: on, ReuseSingleConn: off, Authentication type: null)

然后我尝试启动rdp:

client $ krdc rdp://localhost:3389

上面在远程服务器上启动了一个灰色的 X11 窗口,其中运行着一个没有装饰的 firefox。

client $ rdesktop localhost

上面打开了一个 [login to xrdp] 远程框,要求输入模块、用户名和密码。

我觉得 Windows VM 不再监听 RDP,但上面的状态似乎给出了正确的配置,而且:

$ sudo lsof -n | grep :3389
xrdp       2632             xrdp    6u     IPv4              26202         0t0        TCP *:3389 (LISTEN)
VBoxHeadl 20918          dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
nspr-1    20918 20920    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
nspr-2    20918 20921    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
VBoxSVCWa 20918 20923    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
TimerLR   20918 20925    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
MainHGCMt 20918 20927    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
VRDP-IN   20918 20928    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
VRDP-OUT  20918 20929    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
remote    20918 20930    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
EMT-0     20918 20931    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
EMT-1     20918 20932    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
ShClipboa 20918 20933    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
DragAndDr 20918 20934    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
GuestProp 20918 20935    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
GSTPROPNT 20918 20936    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
GuestCont 20918 20937    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
Timer     20918 20938    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
PDMNsTx   20918 20939    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
ShFolders 20918 20940    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
ATA-0     20918 20941    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
ATA-1     20918 20942    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
INTNET-RE 20918 20943    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
INTNET-XM 20918 20944    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
OhciFrame 20918 20946    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
ACPI\x20P 20918 20947    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)
USBDevIo- 20918 20948    dargaud   19u     IPv6           13856839         0t0        TCP *:3389 (LISTEN)

如果我杀死虚拟机,3389 上就没有更多的侦听器了,所以这不是冲突。

virtualbox
  • 1 个回答
  • 220 Views
Martin Hope
dargaud
Asked: 2017-01-20 12:43:24 +0800 CST

从 kmail 迁移到 Thunderbird

  • 2

我喜欢 kmail 界面,但多年来我一直遇到问题,最近几天它变得无法使用:它不断锁定或崩溃,并且在“网络”上没有解决方案。我不会详细说明,因为我已经厌倦了。

我尝试重置其设置(https://forum.kde.org/viewtopic.php?f=20&t=97754)无济于事。我想移动 Thunderbird,但我还没有找到导入消息/帐户/过滤器的方法:在 Thunderbid 中,[工具][导入] 然后 [下一步] 将我带到一个只有 [取消] 的空窗口。从 kmail 我设法将所有内容导出到一个 zip 导出文件,但我不知道如何处理它。

我搜索了雷鸟的导入插件但没有成功。我已经阅读了一些说要手动移动 /cur/ 目录的消息,但这仅适用于消息,对吗?有什么建议吗?

thunderbird
  • 2 个回答
  • 3317 Views
Martin Hope
dargaud
Asked: 2016-02-11 02:54:53 +0800 CST

在一个 KDE 系统上编写关键问题

  • 2

我有几个 Kubuntu 系统,配置相同,我启用了撰写密钥(我用多种语言编写),但是在其中一个系统上升级到 15.10 破坏了我的撰写密钥。

具体来说,它仍然可以在 Firefox、Thunderbird 中运行(但有时会出现延迟,如果我输入得太快,它将无法正常工作)。

它在 Kate、Konsole、OpenOffice、Dolphin、System Monitor 中不起作用……特别是如果我尝试组合 2 个字符,它有时会同时显示两个字符,有时会吞下第一个字符,从不组合它们。

keyboard
  • 1 个回答
  • 76 Views
Martin Hope
dargaud
Asked: 2014-09-11 01:22:29 +0800 CST

在系统监视器中显示 PPID?

  • 1

是否可以在 ksysguard 的进程表中显示 PPID(父进程 ID)?当我右键单击顶部的栏时,没有它的选项。

kde
  • 1 个回答
  • 243 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