자세한 내용은 다음과 같습니다.

자세한 내용은 다음과 같습니다.

Windows 10의 Hyper-V에서 Quick Create 기능을 사용하여 새 VM을 만들었습니다.

VM이 설정되면(언어 설정을 선택하고 비밀번호를 생성하는 등) Visual Studio Code를 설치하려고 시도했는데 다음과 같은 오류 메시지가 표시되었습니다 Unable to install "Visual Studio Code": too early for operation, device not yet seeded or device model not acknowledged.

조사에 따르면 이는 간단한 문제인 것으로 보입니다.

자세한 내용은 다음과 같습니다.

snap --version:

snap    2.38
snapd   2.38
series  16
ubuntu  18.04
kernel  4.15.0-50-generic

snap changes:

ID   Status  Spawn               Ready               Summary
1    Doing   today at 10:58 BST  -                   Initialize system state
2    Done    today at 10:58 BST  today at 10:58 BST  Initialize device

snap tasks --last=seed:

Status  Spawn               Ready               Summary
Done    today at 10:58 BST  today at 10:58 BST  Ensure prerequisites for "core" are available
Done    today at 10:58 BST  today at 10:58 BST  Prepare snap "/var/lib/snapd/seed/snaps/core_6673.snap" (6673)
Done    today at 10:58 BST  today at 10:58 BST  Mount snap "core" (6673)
Done    today at 10:58 BST  today at 10:58 BST  Copy snap "core" data
Done    today at 10:58 BST  today at 10:58 BST  Setup snap "core" (6673) security profiles
Done    today at 10:58 BST  today at 10:58 BST  Make snap "core" (6673) available to the system
Done    today at 10:58 BST  today at 10:59 BST  Automatically connect eligible plugs and slots of snap "core"
Done    today at 10:58 BST  today at 10:59 BST  Set automatic aliases for snap "core"
Done    today at 10:58 BST  today at 10:59 BST  Setup snap "core" aliases
Done    today at 10:58 BST  today at 10:59 BST  Run install hook of "core" snap if present
Done    today at 10:58 BST  today at 10:59 BST  Start snap "core" (6673) services
Done    today at 10:58 BST  today at 10:59 BST  Run configure hook of "core" snap if present
Done    today at 10:58 BST  today at 10:59 BST  Ensure prerequisites for "gnome-3-26-1604" are available
Done    today at 10:58 BST  today at 10:59 BST  Prepare snap "/var/lib/snapd/seed/snaps/gnome-3-26-1604_82.snap" (82)
Done    today at 10:58 BST  today at 10:59 BST  Mount snap "gnome-3-26-1604" (82)
Done    today at 10:58 BST  today at 10:59 BST  Copy snap "gnome-3-26-1604" data
Done    today at 10:58 BST  today at 10:59 BST  Setup snap "gnome-3-26-1604" (82) security profiles
Done    today at 10:58 BST  today at 10:59 BST  Make snap "gnome-3-26-1604" (82) available to the system
Done    today at 10:58 BST  today at 10:59 BST  Automatically connect eligible plugs and slots of snap "gnome-3-26-1604"
Done    today at 10:58 BST  today at 10:59 BST  Set automatic aliases for snap "gnome-3-26-1604"
Done    today at 10:58 BST  today at 10:59 BST  Setup snap "gnome-3-26-1604" aliases
Done    today at 10:58 BST  today at 10:59 BST  Run install hook of "gnome-3-26-1604" snap if present
Done    today at 10:58 BST  today at 10:59 BST  Start snap "gnome-3-26-1604" (82) services
Done    today at 10:58 BST  today at 10:59 BST  Run configure hook of "gnome-3-26-1604" snap if present
Doing   today at 10:58 BST  -                   Ensure prerequisites for "gnome-calculator" are available
Do      today at 10:58 BST  -                   Prepare snap "/var/lib/snapd/seed/snaps/gnome-calculator_352.snap" (352)
Do      today at 10:58 BST  -                   Mount snap "gnome-calculator" (352)
Do      today at 10:58 BST  -                   Copy snap "gnome-calculator" data
Do      today at 10:58 BST  -                   Setup snap "gnome-calculator" (352) security profiles
Do      today at 10:58 BST  -                   Make snap "gnome-calculator" (352) available to the system
Do      today at 10:58 BST  -                   Automatically connect eligible plugs and slots of snap "gnome-calculator"
Do      today at 10:58 BST  -                   Set automatic aliases for snap "gnome-calculator"
Do      today at 10:58 BST  -                   Setup snap "gnome-calculator" aliases
Do      today at 10:58 BST  -                   Run install hook of "gnome-calculator" snap if present
Do      today at 10:58 BST  -                   Start snap "gnome-calculator" (352) services
Do      today at 10:58 BST  -                   Run configure hook of "gnome-calculator" snap if present
Do      today at 10:58 BST  -                   Ensure prerequisites for "gnome-characters" are available
Do      today at 10:58 BST  -                   Prepare snap "/var/lib/snapd/seed/snaps/gnome-characters_206.snap" (206)
Do      today at 10:58 BST  -                   Mount snap "gnome-characters" (206)
Do      today at 10:58 BST  -                   Copy snap "gnome-characters" data
Do      today at 10:58 BST  -                   Setup snap "gnome-characters" (206) security profiles
Do      today at 10:58 BST  -                   Make snap "gnome-characters" (206) available to the system
Do      today at 10:58 BST  -                   Automatically connect eligible plugs and slots of snap "gnome-characters"
Do      today at 10:58 BST  -                   Set automatic aliases for snap "gnome-characters"
Do      today at 10:58 BST  -                   Setup snap "gnome-characters" aliases
Do      today at 10:58 BST  -                   Run install hook of "gnome-characters" snap if present
Do      today at 10:58 BST  -                   Start snap "gnome-characters" (206) services
Do      today at 10:58 BST  -                   Run configure hook of "gnome-characters" snap if present
Do      today at 10:58 BST  -                   Ensure prerequisites for "gnome-logs" are available
Do      today at 10:58 BST  -                   Prepare snap "/var/lib/snapd/seed/snaps/gnome-logs_57.snap" (57)
Do      today at 10:58 BST  -                   Mount snap "gnome-logs" (57)
Do      today at 10:58 BST  -                   Copy snap "gnome-logs" data
Do      today at 10:58 BST  -                   Setup snap "gnome-logs" (57) security profiles
Do      today at 10:58 BST  -                   Make snap "gnome-logs" (57) available to the system
Do      today at 10:58 BST  -                   Automatically connect eligible plugs and slots of snap "gnome-logs"
Do      today at 10:58 BST  -                   Set automatic aliases for snap "gnome-logs"
Do      today at 10:58 BST  -                   Setup snap "gnome-logs" aliases
Do      today at 10:58 BST  -                   Run install hook of "gnome-logs" snap if present
Do      today at 10:58 BST  -                   Start snap "gnome-logs" (57) services
Do      today at 10:58 BST  -                   Run configure hook of "gnome-logs" snap if present
Do      today at 10:58 BST  -                   Ensure prerequisites for "gnome-system-monitor" are available
Do      today at 10:58 BST  -                   Prepare snap "/var/lib/snapd/seed/snaps/gnome-system-monitor_70.snap" (70)
Do      today at 10:58 BST  -                   Mount snap "gnome-system-monitor" (70)
Do      today at 10:58 BST  -                   Copy snap "gnome-system-monitor" data
Do      today at 10:58 BST  -                   Setup snap "gnome-system-monitor" (70) security profiles
Do      today at 10:58 BST  -                   Make snap "gnome-system-monitor" (70) available to the system
Do      today at 10:58 BST  -                   Automatically connect eligible plugs and slots of snap "gnome-system-monitor"
Do      today at 10:58 BST  -                   Set automatic aliases for snap "gnome-system-monitor"
Do      today at 10:58 BST  -                   Setup snap "gnome-system-monitor" aliases
Do      today at 10:58 BST  -                   Run install hook of "gnome-system-monitor" snap if present
Do      today at 10:58 BST  -                   Start snap "gnome-system-monitor" (70) services
Do      today at 10:58 BST  -                   Run configure hook of "gnome-system-monitor" snap if present
Do      today at 10:58 BST  -                   Ensure prerequisites for "gtk-common-themes" are available
Do      today at 10:58 BST  -                   Prepare snap "/var/lib/snapd/seed/snaps/gtk-common-themes_1198.snap" (1198)
Do      today at 10:58 BST  -                   Mount snap "gtk-common-themes" (1198)
Do      today at 10:58 BST  -                   Copy snap "gtk-common-themes" data
Do      today at 10:58 BST  -                   Setup snap "gtk-common-themes" (1198) security profiles
Do      today at 10:58 BST  -                   Make snap "gtk-common-themes" (1198) available to the system
Do      today at 10:58 BST  -                   Automatically connect eligible plugs and slots of snap "gtk-common-themes"
Do      today at 10:58 BST  -                   Set automatic aliases for snap "gtk-common-themes"
Do      today at 10:58 BST  -                   Setup snap "gtk-common-themes" aliases
Do      today at 10:58 BST  -                   Run install hook of "gtk-common-themes" snap if present
Do      today at 10:58 BST  -                   Start snap "gtk-common-themes" (1198) services
Do      today at 10:58 BST  -                   Run configure hook of "gtk-common-themes" snap if present
Do      today at 10:58 BST  -                   Mark system seeded

......................................................................
Make snap "core" (6673) available to the system

2019-05-17T10:58:58+01:00 INFO Requested daemon restart.

......................................................................
Automatically connect eligible plugs and slots of snap "core"

2019-05-17T10:58:58+01:00 INFO Waiting for restart...

sudo systemctl status snapd.autoimport:

● snapd.autoimport.service - Auto import assertions from block devices
   Loaded: loaded (/lib/systemd/system/snapd.autoimport.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Fri 2019-05-17 16:31:20 BST; 33min ago
           └─ ConditionKernelCommandLine=snap_core was not met

Windows 세부 정보: - Windows 10, 버전 1809, (OS 빌드 17763.437)

내가 시도한 것들

1 - 장난을 치다/var/lib/snapd/state.json

나는 여기서 제안을 시도했습니다.https://forum.snapcraft.io/t/cant-install-or-refresh-snaps-on-arch-linux/8690/28

다음과 같습니다.

sudo systemctl stop snapd
sudo cat /var/lib/snapd/state.json | \
    jq 'delpaths([["data", "auth", "device"]])' > state.json-new
sudo cp state.json-new /var/lib/snapd/state.json
sudo systemctl start snapd

그러나 (그리고 이것은 아마도 Ubuntu 멍청한 놈일 것입니다) jq설치할 수 없으며 그것이 무엇을하고 있는지 정확히 모르기 때문에 수동으로 할 수 없습니다.

2 - Ubuntu 19 이미지 사용

이것은 분명히 같은 문제가 있습니다.

3 - 동료가 자신의 노트북을 사용해 보았습니다.

그도 같은 문제가 있었어

4 - 재설치snapd

이것을 실행했는데 sudo apt install --reinstall snapd설치가 67%에서 멈추는 경우에만 해당됩니다.

5 - 장난을 치다/var/lib/snapd/seed/seed.yaml

이 버그에 따르면:https://www.mail-archive.com/[이메일 보호됨]/msg5400922.html

gtk-common-themes 부분을 다시 주문하고 gnome-calculator 부분도 제거해 보았습니다(변경할 때마다 재부팅). 별 차이가 없는 것 같았습니다. 명령 은 snap tasks --last=seed여전히 ​​gnome-calculator 작업에서 멈추는 것으로 나타났습니다.

6 - 키보드 박치기

기분은 나아졌지만 문제는 계속되었습니다.

7 - 빠른 시작이 아닌 이미지 사용

Ubuntu 18.04.2 ISO를 다운로드하여 사용했습니다. 이것은 효과가 있었습니다(Visual Studio Code를 설치할 수 있었고 스냅 명령이 정상처럼 보였습니다). 그러나 멋진 Hyper-V 기능이 모두 포함되어 있지 않아 화면이 너무 느려지고 복사하여 붙여넣기가 불가능하며 마우스가 매우 느려졌습니다.

이 이미지를 보다 Hyper-V 친화적으로 만들기 위해 다양한 비트를 설치할 수 있지만 공식 이미지만큼 매끄럽게 될 수는 없을 것 같은 느낌이 듭니다. 이 부분 을 고칠 수 있다면 snap최고의 UX가 될 것이라고 생각합니다.

8 - 작동합니다. /var/lib/snapd/seed/seed.yaml파트 2를 가지고 장난을 치다

내에서 많은 항목을 제거하여 /var/lib/snapd/seed/seed.yaml이제 다음과 같이 보입니다.

snaps:
  -
    name: core
    channel: stable
    file: core_6673.snap
  -
    name: gtk-common-themes
    channel: stable/ubuntu-18.04
    file: gtk-common-themes_1198.snap
  -
    name: gnome-3-26-1604
    channel: stable/ubuntu-18.04
    file: gnome-3-26-1604_82.snap

그리고 snap abort --last=seed나서 sudo systemctl restart snapd. 확인 snap tasks --last=seed- 모두 완료되어야 하며 스냅 설치(예: Visual Studio Code)를 수행할 수 있습니다.

나보다 똑똑한 누군가는 아마도 이것이 초래할 끔찍한 측면을 지적할 것입니다.

답변1

분명히 seed.yml 파일은 새로운 OS 설치에 설치할 앱을 지정합니다.

막힌 것을 제거한 다음 수동으로 설치하면 작동합니다.

단계:

  1. /var/lib/snapd/seed/seed.yaml파일을 다음과 같이 변경하세요 .

    snaps:
    -
    name: core
    channel: stable
    file: core_6673.snap
    -
    name: gtk-common-themes
    channel: stable/ubuntu-18.04
    file: gtk-common-themes_1198.snap
    -
    name: gnome-3-26-1604
    channel: stable/ubuntu-18.04
    file: gnome-3-26-1604_82.snap
    

    기본적으로 스냅 작업을 중단시키는 모든 항목을 제거합니다.

  2. 현재 실행 중인 스냅 작업을 중단하고 서비스를 다시 시작합니다.

    • snap abort --last=seed
    • sudo systemctl restart snapd
    • 계속 실행하여 snap tasks --last=seed스냅 작업의 진행 상황을 확인하고 모든 작업이 "완료"될 때까지 기다립니다.
  3. 에서 제거한 모든 앱을 수동으로 설치하세요. /var/lib/snapd/seed/seed.yaml여기에는 다음이 포함될 수 있습니다.

    • gnome-calculator
    • gnome-characters
    • gnome-logs
    • gnome-system-monitor

    이를 다시 설치하는 명령은 다음과 같습니다.

    snap install gnome-calculator gnome-characters gnome-logs gnome-system-monitor`
    

신용 거래

덕분에스테판 야리나이 문제를 해결하는 데 도움을 요청하세요!

관련 정보