네트워크 표시기가 누락되었지만 연결됨 (16.04 LTS Unity)

최근 업그레이드 후 network-manager-gnome을 제거했거나 upgrade -f를 수행 한 것으로 보이므로 패널에 네트워크 표시기가 보이지 않습니다. 무선 및 로컬 네트워크가 활성화되어 있습니다.

나는 시도했다 :

  1. nm-applet, 설치되지 않았습니다 . network-manager-gnome을 설치하여 설치하려고하면 다음과 같은 메시지가 나타납니다.

    The following packages have unmet dependencies:
    network-manager-gnome : Depends: default-dbus-session-bus but it is not installable or dbus-session-bus but it is not installable
                            Recommends: mobile-broadband-provider-info but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.
    
  2. 서비스 sudo service network-manager restart를 다시 시작 하면 서비스 가 다시 시작되어 다시 작동하지만 표시기는 없습니다.

편집 (요청 된 출력) :

  • 출력 cat nm-applet:

    [Desktop Entry]
    Name=Network
    Comment=Manage your network connections
    Icon=nm-device-wireless
    Exec=nm-applet
    Terminal=false
    Type=Application
    NoDisplay=true
    NotShowIn=KDE;GNOME;
    X-GNOME-Bugzilla-Bugzilla=GNOME
    X-GNOME-Bugzilla-Product=NetworkManager
    X-GNOME-Bugzilla-Component=nm-applet
    X-GNOME-UsesNotifications=true
    X-Ubuntu-Gettext-Domain=nm-applet
    
  • locate nm-applet 나타냅니다 :

    gaj@gaj-Lenovo-Z51-70:~$ locate nm-applet
    /etc/xdg/autostart/nm-applet.desktop
    /usr/share/app-install/desktop/network-manager-gnome:nm-applet.desktop
    /usr/share/locale-langpack/en_AU/LC_MESSAGES/nm-applet.mo
    /usr/share/locale-langpack/en_CA/LC_MESSAGES/nm-applet.mo
    /usr/share/locale-langpack/en_GB/LC_MESSAGES/nm-applet.mo
    /usr/share/locale-langpack/hr/LC_MESSAGES/nm-applet.mo
    
  • aptitudei를 사용하여 network-manager-gnome을 설치하려고 하면 다음과 같이하십시오.

    The following NEW packages will be installed:
      network-manager-gnome{b}
    0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 910 kB of archives. After unpacking 6049 kB will be used.
    The following packages have unmet dependencies:
     network-manager-gnome : Depends: default-dbus-session-bus which is a virtual package and is not provided by any available package.
     or
                                      dbus-session-bus which is a virtual package and is not provided by any available package.
    
    The following actions will resolve these dependencies:
    
         Keep the following packages at their current version:
    1)     network-manager-gnome [Not Installed]
    
    
    
    Accept this solution? [Y/n/q/?] y
    

    출력 :

    Starting pkgProblemResolver with broken count: 1
    Starting 2 pkgProblemResolver with broken count: 1
    Investigating (0) network-manager-gnome [ amd64 ] < none -> 1.2.4-0ubuntu2~ubuntu16.04.1~ppa1 > ( gnome )
    Broken network-manager-gnome:amd64 Depends on default-dbus-session-bus [ amd64 ] < none > ( none )
    Broken network-manager-gnome:amd64 Depends on dbus-session-bus [ amd64 ] < none > ( none )
    Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
     network-manager-gnome : Depends: default-dbus-session-bus but it is not installable or
                                      dbus-session-bus but it is not installable
    E: Unable to correct problems, you have held broken packages.
    


답변

locate 명령은 usr/share/nm-applet/디렉토리 에서 많은 양의 컨텐츠가 누락되었음을 나타냅니다 . 누락 된 내용은 network-manager-gnome_1.1.93-1ubuntu1_amd64.deb 패키지에서 찾을 수 있습니다. 정상적인 방법으로 설치할 수없는 경우 dpkg는 이와 같은 상황에서 명령을 내리는 데 큰 망치가 있습니다.sudo dpkg -i --force-downgrade network-manager-gnome_1.1.93-1ubuntu1_amd64.deb

현재 백업이
있는 경우 더 큰 망치의 경우 –force-depends 또는 –force-all 스위치를 사용할 수 있습니다

나는 백업에 대해 농담이 아닙니다. 더 자세한 정보는 명령 dpkg를 강제 옵션에 대한 수 있습니다 dpkg --force-help나는 당신의 편의를 위해 아래에 복제 된

dpkg forcing options - control behaviour when problems found:
  warn but continue:  --force-<thing>,<thing>,...
  stop with error:    --refuse-<thing>,<thing>,... | --no-force-<thing>,...
 Forcing things:
  [!] all                Set all force options
  [*] downgrade          Replace a package with a lower version
      configure-any      Configure any package which may help this one
      hold               Process incidental packages even when on hold
      not-root           Try to (de)install things even when not root
      bad-path           PATH is missing important programs, problems likely
      bad-verify         Install a package even if it fails authenticity check
      bad-version        Process even packages with wrong versions
      overwrite          Overwrite a file from one package with another
      overwrite-diverted Overwrite a diverted file with an undiverted version
  [!] overwrite-dir      Overwrite one package's directory with another's file
  [!] unsafe-io          Do not perform safe I/O operations when unpacking
  [!] confnew            Always use the new config files, don't prompt
  [!] confold            Always use the old config files, don't prompt
  [!] confdef            Use the default option for new config files if one
                         is available, don't prompt. If no default can be found,
                         you will be prompted unless one of the confold or
                         confnew options is also given
  [!] confmiss           Always install missing config files
  [!] confask            Offer to replace config files with no new versions
  [!] architecture       Process even packages with wrong or no architecture
  [!] breaks             Install even if it would break another package
  [!] conflicts          Allow installation of conflicting packages
  [!] depends            Turn all dependency problems into warnings
  [!] depends-version    Turn dependency version problems into warnings
  [!] remove-reinstreq   Remove packages which require installation
  [!] remove-essential   Remove an essential package

WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked [*] are enabled by default.

ppa : vascofalves / gnome-backports에서 설치 한 버전을 얻은 것으로 보입니다 . 설명에 명시되어있는 것처럼 sources.list 에서이 PPA제거하는 것이 좋습니다.

PPA description

Backports of GNOME packages. This is for my personal use. Don't expect anything here to work properly.

출처 :

http://packages.ubuntu.com/xenial/amd64/network-manager-gnome/download

PPA는 어떻게 제거 할 수 있습니까?

https://launchpad.net/~vascofalves/+archive/ubuntu/gnome-backports


답변

  1. 어떤 경우 든 패키지 목록 업데이트로 시작하십시오.

    sudo apt-get update
    

    더 중요한 것은 중요한 네트워크 패키지를 제거 할 수있는 약간의 가능성이 있으며 복잡한 비 네트워크 상황에 처할 수 있습니다. 따라서 나머지 단계를 읽기 전에주의하고 아무것도 삭제하지 마십시오.

  2. 가능하면 적성을 사용하십시오.

    sudo aptitude
    

    (설치된 경우). apt-get 또는 사용중인 GUI보다 종속성을 해결하는 데 실제로 더 적극적입니다. 맨 페이지를 살펴보십시오. 그러나 빠른 시작을 위해 “b”( 깨진 )를 몇 번 눌러 깨진 모든 패키지를 볼 수 있습니다 . 그런 다음 “g”( go 를 의미)를 한 번 누르고 제안 된 솔루션에 대한 패키지 트리를보십시오. 솔루션이 전체 시스템을 삭제하지 않는 경우 🙂 (몇 개 이상의 뎁스) 두 번째 “g”로 적용 할 수 있습니다.

  3. 적성이 없거나 위에서 언급 한 수리가 성공하지 못한 경우 다음을 통해 손상된 패키지를 모두 수리하십시오.

    sudo apt-get -f install
    
  4. 여전히 운이 없다면 문제를 해결하는 데 더 많은 시간을 할애하여 수동으로 수정해야합니다. 이 경우 보류 패키지를 먼저보십시오.

    apt-mark showhold
    

    또는

    dpkg --get-selections | grep hold
    

    그런 다음 깨진 패키지를 살펴보십시오.

    dpkg -l | grep ^..r
    

    그리고 당신을 화나게하는 깨진 사람을 un니다 :

    sudo apt-mark unhold package_name
    

    시도

    sudo apt-get -f install
    

    다시.

그런 다음 적성을 설치하고 필요한 패키지를 설치하는 데 사용할 수 있습니다. 이것이 성공하지 못하면 종속성을 실제로 손상했을 수 있으므로 보류 및 손상된 패키지 목록을 질문에 추가하십시오.

질문 작성자로부터 추가 정보를받은 후 편집

현재 최신 안정 버전 (16.04) 1.2.0-0ubuntu0.16.04보다 1.2.4-0ubuntu2 ~ ubuntu16.04.1 ~ ppa1 버전의 network-manager-gnome 패키지에 높은 우선 순위를 부여하는 PPA가 설치되어있는 것 같습니다. .4. 최신 패키지는 아마도 gnome-backport 저장소와 같은 gnome-backport 저장소에서 제공 됩니다.

계속하는 두 가지 방법 …

  1. Gnome의 안정 버전 (16.04) 버전 되돌리기
  2. 다른 PPA에서 누락 된 패키지 찾기

시나리오 1 : 다음 제안은 대화식 모드에서 적성 을 시작한 sudo aptitude다음 슬래시 ( “/”)를 눌러 검색하고 검색 필드 network-manager-gnome에 쓰고 입력하십시오. 패키지가 선택되면 enter로 열고 패키지 정보 페이지의 맨 아래로 화살표 / pgdown으로 이동하십시오. 거기에서 공식 버전 “1.2.0-0ubuntu0.16.04.4″를 설치하도록 선택할 수 있습니다. 선택하고 더하기 (+)를 누르십시오. 이것은 적성에 대한 패키지 종속성 해결자를 트리거하고 해결 방법을 제공하려고 시도합니다. hedaer가 빨간색으로 바뀌면 종속성이 일부 깨진다는 것을 의미합니다. “b”를 여러 번 눌러 확인하십시오.

불행히도 해결책은 아마도 모든 백 포트 된 Gnome 직원을 삭제할 것입니다 … 견딜 수 있다면-하십시오. 그런 다음 aptitude를 통해 추가 패키지를 설치하여 얻을 수있는 혼란을 미리보십시오.

시나리오 2 : 우리는 알고 먼저 필요 백 포트 저장소 텟 당신이 … 이외에 다른 수 사용하고 주석 토론에서 제안 때문에, -의 출력을 제공

egrep -v '^#|^ $' /etc/apt/sources.list /etc/apt/sources.list.d/

egrep Pin-Priority /etc/apt/preferences /etc/apt/preferences.d/*

답변

이것은 aptitude를 사용하여 network-manager-gnome을 다시 설치하거나 설치하여 해결 된 문제로 종속성을 해결하거나 아무것도 변경할 수 없다는 알림을 받았습니다. 종족을 해결하면 문제가 해결되었습니다.