从https://help.ubuntu.com/community/WICD
要用 WICD 替换网络管理器,
首先,我们下载最新的 NetworkManager,以防 WICD 不起作用时需要重新安装:
sudo apt-get install -d --reinstall network-manager network-manager-gnome
然后我们安装WICD:
sudo apt-get install wicd-gtk
然后我们才卸载 NetworkManager:
sudo apt-get remove --purge network-manager-gnome network-manager
第一步,由于实际上并没有安装网络管理器(
-d
),所以-reinstall
第一步需要吗?为什么?恢复到 NetworkManager 时,接下来安装 Network Manager 是否需要互联网连接?即是从之前下载的软件包安装,还是从互联网上的存储库安装?如果我想从本地副本安装,我应该运行哪个命令?
打开终端并执行以下命令:
Install NetworkManager: sudo apt-get install network-manager-gnome network-manager Then remove WICD: sudo apt-get remove --purge wicd wicd-gtk Finally, restart your system.
谢谢。
答案1
-d
和 的组合--reinstall
毫无意义:$ sudo apt-get install -d --reinstall network-manager network-manager-gnome Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/1.087 kB of archives. After this operation, 0 B of additional disk space will be used. Download complete and in download only mode
你只需要
sudo apt-get install -d network-manager network-manager-gnome
这是本地版本,使用以下方式安装
sudo apt-get install --reinstall ...
$ ping google.de ping: unknown host google.de $ sudo apt-get install --reinstall network-manager-gnome network-manager Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/1.087 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 417744 files and directories currently installed.) Preparing to unpack .../network-manager_0.9.10.0-4ubuntu15.1_amd64.deb ... Unpacking network-manager (0.9.10.0-4ubuntu15.1) over (0.9.10.0-4ubuntu15.1) ... Preparing to unpack .../network-manager-gnome_0.9.10.1-0ubuntu4_amd64.deb ... Unpacking network-manager-gnome (0.9.10.1-0ubuntu4) over (0.9.10.1-0ubuntu4) ... Processing triggers for dbus (1.8.12-1ubuntu5) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (219-7ubuntu3) ... Processing triggers for ureadahead (0.100.0-19) ... ureadahead will be reprofiled on next reboot Processing triggers for libglib2.0-0:amd64 (2.44.0-1ubuntu3) ... No such key 'external-editor' in schema 'org.gnome.eog.ui' as specified in override file '/usr/share/glib-2.0/schemas/20_ubuntu-gnome-default-settings.gschema.override'; ignoring override for this key. Processing triggers for libglib2.0-0:i386 (2.44.0-1ubuntu3) ... No such key 'external-editor' in schema 'org.gnome.eog.ui' as specified in override file '/usr/share/glib-2.0/schemas/20_ubuntu-gnome-default-settings.gschema.override'; ignoring override for this key. Processing triggers for gconf2 (3.2.6-3ubuntu1) ... Processing triggers for hicolor-icon-theme (0.14-0ubuntu1) ... Processing triggers for gnome-menus (3.10.1-0ubuntu5) ... Processing triggers for desktop-file-utils (0.22-1ubuntu3) ... Processing triggers for mime-support (3.58ubuntu1) ... Setting up network-manager (0.9.10.0-4ubuntu15.1) ... Setting up network-manager-gnome (0.9.10.1-0ubuntu4) ...