SUDO APT UPGRADE KUBUNTU UPDATENote that neither the Store update nor apt (or other package methods) update the WSL2 kernel. Even when the unversioned Store Ubuntu gets updated to (presumably) 22.04, it won't change your installed instance of 20.04, just the rootfs package.Īt that point, you'll still need to run a sudo do-release-upgrade -d when you eventually want to upgrade to 22.04 (or an interim release). Neither of these scenarios is very common. Again, the same caveats apply about the repo packages as in the first scenario. The newly created instance would then use the Store-updated rootfs. Want to use that to create a second WSL/Ubuntu instance (using wsl -import). Even immediately after installing from the Store, you'll still almost always get a number of updates through apt. However, note that Store releases are still fairly infrequent compared to package updates in the official repos. When going through that initial configuration, the rootfs is unpacked, so you would get the "latest and greatest" from the Store at that point. Unregister the instance (which deletes all configuration) and re-configure it by re-running the ubuntu.exe command. (Site note: Credit and thanks to u/zoredache on Reddit who originally clarified this for me.) So what's the point?Īnyway, the upgrade of the Store package is pretty useless for most users unless you: Otherwise, you'd be competing between the "Store" upgraded packages and those from the repo. SUDO APT UPGRADE KUBUNTU HOW TONote that this does not include the kernel - See below for how to do that.Īs I think you can see from your question, this is a good thing. You still need to run sudo apt update & sudo apt upgrade -y (or equivalent) to update the packages on a regular basis. It does not automatically update any of the packages in your instance. It does not change your installed instance. When there's a new update of the app on the Store, the only thing that gets updated on your system is the rootfs package. What does an "automatic upgrade" of the Store app really do? When run for the first time (via ubuntu.exe), the installer creates your actual WSL instance in your %UserProfile%\AppData\Local\Packages\CanonicalGroup. You can see this by starting an Administrative PowerShell and running Get-ChildItem -Recurse 'C:\Program Files\WindowsApps\Canonical*' | Where-Object. This is actually where the Linux kernel is installed, since it is shared between all installed WSL2 distributions/instances.Īn "app package" with a rootfs package ( ) in C:\Program Files\WindowsApps\CanonicalGroup. WSL itself, of course, as a prerequisite. SUDO APT UPGRADE KUBUNTU INSTALLThis is a bit difficult to explain, but when you install "Ubuntu" (no version) from the Store, you actually end up with three different "installations": It took me a bit to get used to this concept myself. Yes, "Ubuntu" (without a version number) in the Store "automatically updates", but that probably doesn't mean what you think it means. The "automatic upgrade" part of the Store app is more than a bit confusing. There's enough of a difference in the question to require a few changes, but some of the core concepts are the same. Note: Reusing some of my answer to this question.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |