How to update the windows bash shell to ubuntu 16.04

A key upgrade in the recent Creators Update adds support for a new version of the Linux-based OS Ubuntu.

Running Linux from inside Windows no longer requires a virtual machine or dedicated third-party software.

Windows 10 supports the Windows Subsystem for Linux, which allows users to run a range of Linux tools from the command line.

A key upgrade in the Creators Update is support for a newer version of the Linux-based OS Ubuntu. For a step-by-step walkthrough of how to install / update to Ubuntu 16.04, see the written guide below or watch the video above.

How to install Ubuntu 16.04

To access Ubuntu from within Windows 10 you’ll first need to enable the Developer mode.

You can do this by going to the Start menu, going to Settings, then to Update and security. On this page, click the For developers option in the lefthand sidebar.

Windows: Must-read coverage

  • 10 secret Microsoft-specific keyboard shortcuts in Windows 11
  • Plan for a Windows 10/11 reinstall by following these steps
  • Windows 11 cheat sheet: Everything you need to know
  • Windows 11: Tips on installation, security and more (free PDF)

Now click the Developer mode radio button and then click Yes on the pop-up window titled Use developer features. Next reboot the machine.

Once the machine has rebooted, you’ll need to enable the Windows Subsystem for Linux. Search for Windows Features in the Taskbar and select Turn Windows features on or off.

Scroll down to the bottom of the Windows Features window, and tick the checkbox labelled Windows Subsystem for Linux.

Next, you’ll need to Install the Bash on Ubuntu on Windows app.

To do this, once again, click the search box on the Taskbar, type cmd and hit Enter.

In the command line, type bash and hit Enter. Windows will now begin installing Bash on Ubuntu on Windows. Accept the terms of service and the machine will download Ubuntu.

Once Ubuntu is installed, you’ll be placed into Bash running on Ubuntu 16.04 on the Windows Subsystem for Linux.

How to upgrade from Ubuntu 14.04 to 16.04

If you’re already running the Bash on Ubuntu on Windows app and want to upgrade the version from 14.04 to 16.04, then there are two ways to approach this.

The first approach will delete the existing Ubuntu distro, including any files that you’ve stored in the Linux filesystem, so you’ll need back these up in advance.

To upgrade using this approach, open the Windows command line by typing ‘cmd’ into the Taskbar’s search field and hitting Enter.

In the command line, now type ‘lxrun /uninstall /full /y‘ and hit Enter. Next type ‘lxrun /install‘. Now wait and Ubuntu 16.04 will be installed on your machine.

The other approach is to perform an upgrade-in-place, although this can result in some complications.

Open Bash on Ubuntu on Windows and in the command prompt type ‘do-release-upgrade’.

Whichever method you choose, once the installation is complete, you’ll be able to access Ubuntu via the Bash on Ubuntu on Windows app

That’s it for this tip, I hope you found you found it to be useful.

How to update the windows bash shell to ubuntu 16.04

TechRepublic Premium Exclusives Newsletter

Save time with the latest TechRepublic Premium downloads, including original research, customizable IT policy templates, ready-made lunch-and-learn presentations, IT hiring tools, ROI calculators, and more. Exclusively for you!

In this Linux system administration tutorial you will learn how to update an Ubuntu Linux Server 16.04 LTS (Xenial Xerus) system with screenshots and instructions.

Prerequisites

To complete this tutorial you will require a running Ubuntu Linux Server 16.04 LTS system and an account with sudo administrative privileges. The system must have network connectivity and access to an Ubuntu update server.

Updating

The following steps will guide you through updating an Ubuntu Linux Server 16.04 LTS system. The update process can take some time to complete and some steps may take longer than others.

To begin updating your Ubuntu Linux System, you will need to be logged in using a valid user account for your system. If you are unsure of how to do this, read our tutorial on Logging into Ubuntu Linux Server 16.04 LTS.

In this tutorial, we have logged in as techonthenet on the host called ubuntu.

To update the software on our system we must first ensure the system has the latest package lists installed.

To do this enter the command sudo apt-get update after the system prompt.

The following screenshot demonstrates what you will see.

How to update the windows bash shell to ubuntu 16.04

Here is a break down of this command:

sudo Execute the command that follows using super user permissions. (The user executing the sudo command MUST have privileges to do so.) apt-get update Execute the apt-get command with the update directive. The update directive tells apt-get to refresh the system package lists.

When you have entered the command, press the Enter key to execute the command.

The sudo command will now prompt you to enter the password for your user account before attempting to execute apt-get update with super user permissions.

How to update the windows bash shell to ubuntu 16.04

After you have entered your password, press the Enter key to continue.

If all goes well, you will see apt-get update begin to update the system’s package lists. The apt-get update command can output a great deal of information and may take some time to complete.

The following screenshot shows some of what you might see.

How to update the windows bash shell to ubuntu 16.04

When apt-get update is complete you will again see the system prompt appear.

Next we will upgrade the software on our system by entering the command sudo apt-get upgrade at the system prompt.

The following screenshot demonstrates what you will see.

How to update the windows bash shell to ubuntu 16.04

Here is a break down of this command:

sudo Execute the command that follows using super user permissions. (The user executing the sudo command MUST have privileges to do so.) apt-get upgrade Execute the apt-get command with the upgrade directive. The upgrade directive tells apt-get to download and apply package updates that are available for your system. apt-get determines which packages have updates by checking the system package lists against the versions of the software packages that are currently installed on your system. If there are newer versions of software in the system package lists they will be marked for update.

If more than 15 minutes has passed since you executed the sudo apt-get update command from the previous steps, sudo will re-ask you to enter your account password.

The apt-get upgrade command will now determine which packages require updating. If new packages are available, it will display something like the following screenshot:

Please note that your package list will likely differ from what is seen here.

How to update the windows bash shell to ubuntu 16.04

The apt-get upgrade command will prompt you to answer Y to proceed with the upgrade, or N to abort. (Case does not matter)

You will notice that the Y is in upper case. This means that it will be the default if nothing is entered. We will press the Enter key to accept this default and continue with the upgrade.

The apt-get upgrade command will now begin downloading and updating your software packages.

This can take some time so please be patient. You will see output from apt-get upgrade similar to the following:

How to update the windows bash shell to ubuntu 16.04

When apt-get upgrade is complete you will again see the system prompt appear.

TIP: Some software packages require special attention to update and will not have been updated by the apt-get upgrade command.

To upgrade those packages, you will have to tell apt-get which packages to upgrade. This is done by adding each package name to the apt-get command separated by spaces. The following is an example of how we could upgrade the linux kernel.

To ensure there are no more packages available for update, we will re-issue the sudo apt-get upgrade command and press the Enter key to continue.

How to update the windows bash shell to ubuntu 16.04

The following line in the screenshot below indicates that there are no more packages available to update.

How to update the windows bash shell to ubuntu 16.04

In some instances, such as when an update to the Linux kernel is done, you will need to reboot your system to ensure you are using the latest version of your software.

To reboot your system, enter sudo reboot at the system prompt and press the Enter key to execute the command.

How to update the windows bash shell to ubuntu 16.04

Congratulations, you have successfully updated your Ubuntu Linux Server 16.04 LTS system!

cumai3211 于 2020-09-26 00:28:33 发布 280 收藏

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

Starting with the Windows 10 Creators Update, anyone who installs the Bash environment will get Ubuntu 16.04 (Xenial). But, if you’ve previously installed Bash in the Anniversary Update, you’ll be stuck with Ubuntu 14.04 (Trusty) until you manually upgrade.

Ubuntu 16.04 contains more modern, up-to-date software packages. Ubuntu 14.04 was originally released in April, 2014, while Ubuntu 16.04 was released in April, 2016.

Ubuntu 16.04包含更现代的最新软件包。 Ubuntu 14.04最初于2014年4月发布,而Ubuntu 16.04则于2016年4月发布。

Update: Starting with the Fall Creators Update, Linux distributions are now delivered via the Store. If you previously installed the Ubuntu Bash environment, just open the Microsoft Store, search for “Ubuntu”, and install it to get the latest version.

更新:从Fall Creators Update开始,现在通过商店提供Linux发行版。 如果您以前安装过Ubuntu Bash环境,则只需打开Microsoft Store,搜索“ Ubuntu”,然后安装它以获取最新版本。

如何检查您拥有的Ubuntu版本 ( How to Check Which Version of Ubuntu You Have )

If you’re not sure which version of Ubuntu is being used in your current Bash environment, open a Bash window and run the following command:

It’ll show you whether you’re running Ubuntu 14.04 or Ubuntu 16.04. If you’re running Ubuntu 14.04 and want to upgrade, read on. But ensure you have the Creators Update installed: You can’t upgrade to Ubuntu 16.04 LTS without upgrading to the Creators Update first.

它将显示您正在运行Ubuntu 14.04还是Ubuntu 16.04。 如果您正在运行Ubuntu 14.04,并且想要升级,请继续阅读。 但是请确保已安装了Creators Update:如果不先升级到Creators Update,就无法升级到Ubuntu 16.04 LTS。

How to update the windows bash shell to ubuntu 16.04

选项一:使用lxrun卸载并重新安装Bash ( Option One: Uninstall and Reinstall Bash With lxrun )

If you don’t care about any customizations you’ve made to your bash environment (or you’re prepared to customize it again), you don’t have to worry about performing an Ubuntu upgrade. You can simply remove your current Ubuntu image and then tell Windows to reinstall a new Ubuntu image. This is the fastest way to upgrade your Bash environment.

如果您不关心对bash环境进行的任何自定义(或准备再次自定义它),则不必担心执行Ubuntu升级。 您可以简单地删除当前的Ubuntu映像,然后告诉Windows重新安装新的Ubuntu映像。 这是升级Bash环境的最快方法。

To do this, first open a Command Prompt window by right-clicking the Start button or pressing Windows+X on your keyboard and selecting “Command Prompt”. Run the following command to uninstall the Bash shell. This will keep your Linux user account’s files and preferences, but will erase the system files, including any installed programs and system-level settings changes.

为此,首先通过右键单击“开始”按钮或按键盘上的Windows + X并选择“命令提示符”,打开“命令提示符”窗口。 运行以下命令来卸载Bash shell。 这将保留您Linux用户帐户的文件和首选项,但会删除系统文件,包括所有已安装的程序和系统级设置更改。

Type y to continue and Windows will uninstall the Ubuntu 14.04 Bash environment.

键入 y 继续,Windows将卸载Ubuntu 14.04 Bash环境。

How to update the windows bash shell to ubuntu 16.04

Your Bash system files are now removed. To reinstall Bash—which will give you Ubuntu 16.04 instead of Ubuntu 14.04—run the following command:

您的Bash系统文件现在已删除。 要重新安装Bash(它将为您提供Ubuntu 16.04而不是Ubuntu 14.04),请运行以下命令:

Type y to continue and Windows will install the Ubuntu 16.04 Bash environment. Windows will automatically suggest you use the same username you used previously. You’ll be asked to enter a password after.

键入 y 继续,Windows将安装Ubuntu 16.04 Bash环境。 Windows会自动建议您使用以前使用的相同用户名。 之后,系统会要求您输入密码。

How to update the windows bash shell to ubuntu 16.04

When it’s done, run the lsb_release -a command once again and you’ll see you’re now using Ubuntu 16.04. You have access to the newer software available in Ubuntu 16.04’s package repositories.

完成后,再次运行 lsb_release -a 命令,您将看到您正在使用Ubuntu 16.04。 您可以访问Ubuntu 16.04的软件包存储库中提供的较新软件。

How to update the windows bash shell to ubuntu 16.04

选项二:使用do-release-upgrade升级Ubuntu ( Option Two: Upgrade Ubuntu With do-release-upgrade )

If you’ve customized your Bash environment and installed software, you may not want to completely erase everything. In this case, you can perform an upgrade command from within the Bash shell. This will upgrade Ubuntu from version 14.04 to 16.04, just like you’d upgrade a full Ubuntu environment to a new release. However, this will take longer than simply removing and reinstalling the Bash files.

如果您已自定义Bash环境并安装了软件,则可能不想完全擦除所有内容。 在这种情况下,您可以在Bash Shell中执行升级命令。 这会将Ubuntu从14.04版本升级到16.04,就像您将完整的Ubuntu环境升级到新版本一样。 但是,这将比简单地删除并重新安装Bash文件花费更多的时间。

How to update the windows bash shell to ubuntu 16.04

Počínaje aktualizací Windows 10 Creators Update, každý, kdo nainstaluje prostředí Bash dostane Ubuntu 16.04 (Xenial). Pokud jste však dříve nainstalovali Bash v Anniversary Update, budete přilepeni Ubuntu 14.04 (Trusty), dokud nebudete ručně aktualizovat.

Ubuntu 16.04 obsahuje více moderních a aktuálních softwarových balíčků. Ubuntu 14.04 byl původně vydán v dubnu 2014, zatímco Ubuntu 16.04 byl vydán v dubnu 2016.

Aktualizace : Počínaje aktualizací Fall Creators, distribuce Linuxu jsou nyní doručovány prostřednictvím obchodu. Pokud jste dříve nainstalovali prostředí Ubuntu Bash, stačí otevřít obchod Microsoft Store, vyhledat “Ubuntu” a nainstalovat jej, abyste získali nejnovější verzi.

Jak zkontrolovat, kterou verzi Ubuntu máte

SOUVISEJÍCÍ: Všechno, co můžete udělat s novým Bash Shell systému Windows 10

Pokud si nejste jisti, kterou verzi Ubuntu používáte ve vašem aktuálním prostředí Bash, otevřete okno Bash a spusťte následující příkaz:

Ukáže vám, zda používáte Ubuntu 14.04 nebo Ubuntu 16.04. Pokud používáte Ubuntu 14.04 a chcete aktualizovat, přečtěte si. Ujistěte se však, že máte nainstalovanou aktualizaci Tvůrce: Nejdříve nemusíte inovovat na Ubuntu 16.04 LTS, aniž byste nejprve přešli na Aktualizaci autorů.

How to update the windows bash shell to ubuntu 16.04

Možnost jedna: Odinstalovat a znovu nainstalovat bash s lxrun

SOUVISEJÍCÍ: nebo přeinstalovat) Windows 10 Ubuntu Bash Shell

Pokud se vám nestará o nějaké přizpůsobení, které jste provedli v prostředí bash (nebo jste připraveni jej přizpůsobit znovu), nemusíte se obávat provádění Aktualizace Ubuntu. Stačí jednoduše odebrat váš aktuální obrázek Ubuntu a poté Windows požádat o přeinstalaci nového obrázku Ubuntu. Toto je nejrychlejší způsob, jak upgradovat prostředí Bash.

Nejprve otevřete okno Příkazový řádek klepnutím pravým tlačítkem myši na tlačítko Start nebo stisknutím klávesy Windows + X na klávesnici a výběrem možnosti “Příkazový řádek”. Spusťte následující příkaz k odinstalování shell Bash. Tímto způsobem zachováte soubory a předvolby uživatelského účtu systému Linux, ale vymažete systémové soubory včetně všech nainstalovaných programů a nastavení na úrovni systému.

Zadejte y bude odinstalovat prostředí Ubuntu 14.04 Bash.

How to update the windows bash shell to ubuntu 16.04

Soubory systému Bash jsou nyní odebrány. Chcete-li znovu nainstalovat Bash – což vám místo Ubuntu 14.04 udělí Ubuntu 16.04, použijte následující příkaz:

Pro pokračování pokračujte a Windows nainstaluje prostředí Ubuntu 16.04 Bash. Systém Windows automaticky navrhne použít stejné uživatelské jméno, které jste použili dříve. Po zadání hesla budete požádáni o zadání hesla. Když je hotovo, spusťte znovu příkaz lsb_release -a

How to update the windows bash shell to ubuntu 16.04

a uvidíte, že používáte Ubuntu 16.04. Máte přístup k novějšímu softwaru, který je k dispozici v úložištích balíků Ubuntu 16.04. Možnost 2: Upgrade Ubuntu S up-release-upgrade Pokud jste si přizpůsobili prostředí Bash a nainstalovaný software, zcela vymazat vše. V tomto případě můžete provést příkaz pro upgrade z prostředí Bash shell. To upgraduje Ubuntu od verze 14.04 na 16.04, stejně jako byste upgradovali plné prostředí Ubuntu na novou verzi. Bude to však trvat déle, než jednoduše odebrat a znovu nainstalovat soubory Bash.

How to update the windows bash shell to ubuntu 16.04

Chcete-li to provést, otevřete shell Bash a spusťte následující příkaz:

od společnosti Microsoft.

How to update the windows bash shell to ubuntu 16.04

Celkově funguje rozbočovač Wink velmi dobře . ale někdy zařízení, která jste k němu připojili, mohou působit trochu ohromně. Zde je několik věcí, které můžete udělat pro odstranění problémů se všemi Z-Wave senzory a zařízeními připojenými k rozbočovači. Obnovit mapu spojení Z-Wave Skvělá věc o Z-Wave je že používá síťová síť pro připojení všech vašich zařízení a senzorů dohromady.

How to update the windows bash shell to ubuntu 16.04

V závislosti na tom, kde máte nastavenou kameru Nest Cam, můžete obdržet více oznámení, než skutečně potřebujete. Nicméně můžete přizpůsobit vaše oznámení Nest Cam tak, abyste dostali pouze ty, o které opravdu záleží, kdykoli je budete potřebovat. Můžete si vybrat, jaký druh upozornění chcete, když je chcete přijímat, a jak chcete přijímat.

Windows 10 has recently added a Bash Shell support. It is not just a simple shell. It contains a complete Linux subsystem, which means you can run Linux native code directly on Windows.

The Ubuntu Sub System (New Bash Shell) in Windows 10 is a truly Linux kernel (unlike cygwin, which is just a shell). It means that you can compile on Windows in the Sub System to Linux COFF binary file which also works if you copy that to the Linux system. It works vice versa.

I am developing some scripts and bots using Python3, and I found it simpler and convenient to use this Ubuntu Sub System on Windows 10. I am a Windows OS user and a casual Linux fan, and this works best for me.

It is more than enough if you want to develop some scripts (Python, BASH etc) for Linux. So you have the best of both worlds, while you still can enjoy Windows for the gaming, legacy software, Windows Batch CMD and if you are a geek, you still can write and run your scripts quickly e.g. awk, sed …

On the New Bash Shell, your windows Disk structure is mounted at /mnt/c, /mnt/d … so yes, it is a real sub-system instead of a emulator.

How to Enable Bash Shell on Windows 10?

Click the start and type in “Turn Windows Features on/off” and hit return. Alternatively, you can go to Control Panel and navigate to Programs, Turn Windows Features On/Off. Both methods should give you this dialog.

How to update the windows bash shell to ubuntu 16.04

Enable Ubuntu at Windows 10 via Turn Windows Feature On/Off

Scroll down and tick “Turn Linux Subsystem (Beta)”. It takes a few minutes before the Linux shell is made ready. You probably need to restart your PC before changes are taken into effect. On the first time, open the command line shell as administrator and type in lxrun /install to install the ubuntu sub shell (download the binaries/images from the Microsoft Store)

How to update the windows bash shell to ubuntu 16.04

How to Disable/Remove Bash Shell on Windows 10?

If you decide to remove the Linux Shell on Windows, here is how you should type in the following command in the Windows Cmd Prompt:

How to Change Default User on Bash Shell Windows?

At the very first time after setup, you are prompted a default user and set the password. You could change this later so that every time you open the bash shell, the default user is logged in.

The above command sets root account by default.

How to Install Software on Bash Shell Windows?

The answer is apt-get package manager. Basically the user experience is almost exactly the same as on the true Ubuntu OS. Let’s see below screenshot that I run the sudo apt-get install g++ to install the g++ compiler on the Linux Sub System.

Want to update Ubuntu quickly and simply? Here’s how to open a terminal prompt and install Ubuntu in the command line.

Knowing how to update Linux in the command line is an absolute must for skilled users. Staying updated keeps your system safe, secure, and stocked with the latest features. Today we’ll learn how to update an Ubuntu desktop or server from the terminal, or through an SSH connection.

Why You Should Update Via Command Line

Why use the command line to update Linux?

Because it’s often faster than using a GUI tool like Software Updater, and you can see the updates happening in real time. It’s also one of the easiest commands to learn, as you’re about to find out.

In addition to Ubuntu, these instructions will work on most Ubuntu-based distributions, like Linux Mint and Kali Linux.

Keep in mind going forward, however, that any time you upgrade Ubuntu software, you’ll need to have administrative privileges. That means you’ll always be asked to confirm your password.

Update Ubuntu in the Terminal

The Ubuntu update command is apt, or sometimes apt-get. Apt is Ubuntu’s primary package manager.

Using the update option tells apt to search your software repositories (everything listed in /etc/apt/sources.list) and take inventory of what Ubuntu package updates are available.

Note: You might see certain Linux guides telling you to use apt-get, like sudo apt-get update, instead of apt. Don’t be confused: both commands perform the same function, but we recommend apt over apt-get, as it’s a little more user-friendly.

Once the update command has completed, you’ll be ready to apply the package updates using the upgrade option.

The above command will apply all upgrades found in the previous update command as long as they don’t require removal of any already installed packages. If some packages seem to refuse to upgrade, using the full-upgrade option, which can remove certain packages, may resolve the problem.

With either command, after listing out the available upgrades, you’ll be asked to confirm the installation by entering y or yes.

You can skip the confirmation by adding the -y flag to the end of an upgrade command, and you can combine both update and upgrade into one command by utilizing the && operator.

Update Ubuntu Server in the Command Line

Updating an Ubuntu server is essentially the same experience as updating an Ubuntu desktop through the command line.

However, in this instance, you should use apt-get instead of apt, and follow the upgrade with the dist-upgrade option to ensure your server stays completely up to date.

Update Ubuntu via SSH

If you’ve set up an SSH connection with your Ubuntu system, you can upgrade remotely and securely after signing into your SSH.

Make sure you replace “username” and “REMOTE.IP.ADDRESS.HERE” with the appropriate information.

Ubuntu Package Upgrades

Your Ubuntu system is now updated and ready for you to continue using it safely, and with all the latest Linux features.

Some Linux apps you won’t actually find in the software store or apt repositories. We’ve gathered several websites that offer the best in DEB downloads that will work with Ubuntu.

If I make changes to .bashrc , how do I reload it without logging out and back in?

17 Answers 17

Help us improve our answers.

Are the answers below sorted in a way that puts the best answer at or near the top?

You can enter the long form command:

or you can use the shorter version of the command:

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

/.bash_profile, though I don't know if this is a good practice.

/.bash_aliases) that opens .bashrc, and reloads it after the editor exits. You can do it by combining two commands in an alias, for example like so (if vim is your preferred editor, otherwise swap it out to something else): alias editbashrc='vim

/.bashrc' . This will make the editing much smoother, since you don't need to think about the reloading, after doing the edit, if using the custom alias.

Or you could use:

This does the same thing, and is easier to remember (at least for me).

The exec command completely replaces the shell process by running the specified command-line. In our example, it replaces whatever the current shell is with a fresh instance of bash (with the updated configuration files).

How to update the windows bash shell to ubuntu 16.04

/.bashrc will execute in dash rather than bash , so there is an error because shopt is missing. source isn't found from the shell, so that solution is out as well. I tried this and the docker image built smoothly!

/.bashrc will preserve your entire shell environment (though likely modified by the sourcing of

/.bashrc ), whereas exec bash will only preserve your current shell's environment variables (any ad-hoc changes to the current shell in terms of shell variables, function, options are lost). Depending on your needs, one or the other approach may be preferred.

To complement and contrast the two most popular answers, .

Both solutions effectively reload

/.bashrc , but there are differences:

/.bashrc or source

/.bashrc will preserve your current shell session:

    Except for the modifications that reloading

exec bash , or, more robustly, exec "$BASH" [1] , will replace your current shell with a new instance, and therefore only preserve your current shell’s environment variables (including ones you’ve defined ad hoc, in-session).

  • In other words: Any ad-hoc changes to the current shell in terms of shell variables, shell functions, shell options, command history are lost.

Depending on your needs, one or the other approach may be preferred.

Note: The above applies analogously to other shells too:

  • To apply the exec approach to whatever your default shell is, use exec $SHELL
  • Similarly, the sourcing approach requires you to know and specify the name of the shell-specific initialization file; e.g., for zsh : .

[1] exec bash could in theory execute a different bash executable than the one that started the current shell, if it happens to exist in a directory listed earlier in the $PATH . Since special variable $BASH always contains the full path of the executable that started the current shell, exec "$BASH" is guaranteed to use the same executable.
A note re ". " around $BASH : double-quoting ensures that the variable value is used as-is, without interpretation by Bash; if the value has no embedded spaces or other shell metacharacters (which is likely in this case), you don’t strictly need double quotes, but using them is a good habit to form.

I am a very new Ubuntu user (in virtual machine because i use Windows 7 for non-ubuntu stuff R.I.P ME) But i need to upgrade to 20.04 (and i use 16.04) but how to upgrade?

Without: Buy a computer with Ubuntu installed, Download .iso file or download the .iso file in that VM In VMWare.

2 Answers 2

There is no direct release-upgrade path that is supported.

The supported method is to release-upgrade from 16.04 to 18.04, then release-upgrade again from 18.04 to 20.04. Stop, test your new 18.04 system, and troubleshoot any problems you encounter before continuing.

  • A backup or VM snapshot or VM clone before beginning is wise.

This classic Debian method is direct. but is NOT supported and not tested. If you do this and something breaks, we won’t help you fix it. We will merely advise you to clean-install. There have been a lot of changes in the past four years, so breakage may occur.

  • A backup or VM snapshot or VM clone before beginning is very wise.
  • Uninstall all non-Ubuntu software packages.
  • sudo apt update and sudo apt upgrade
  • Manually edit your sources: Replace all "xenial" strings with "focal"
  • Run sudo apt dist-upgrade . DON’T agree without reading the output. Resolve all ‘kept back’ packages before approving the upgrade. Make sure your Desktop is not removed by the upgrade.
  • Reinstall all non-Ubuntu software packages.

It’s often fastest and easiest when skipping multiple releases to simply reinstall Ubuntu.

How to update the windows bash shell to ubuntu 16.04

Start med Windows 10 Creators Update, vil alle, der installerer Bash-miljøet, få Ubuntu 16.04 (Xenial). Men hvis du tidligere har installeret Bash i jubilæumsopdateringen, sidder du fast med Ubuntu 14.04 (Trusty), indtil du manuelt opgraderer.

Ubuntu 16.04 indeholder nyere og opdaterede softwarepakker. Ubuntu 14.04 blev oprindeligt udgivet i april 2014, mens Ubuntu 16.04 blev udgivet i april 2016.

Opdatering : Fra og med Fall Creators Update, leveres Linux-distributioner nu via butikken. Hvis du tidligere installerede Ubuntu Bash-miljøet, skal du bare åbne Microsoft Store, søge efter “Ubuntu” og installere den for at få den nyeste version.

Sådan kontrolleres hvilken version af Ubuntu du har

RELATERET: Alt du kan gøre med Windows 10’s nye Bash Shell

Hvis du ikke er sikker på hvilken version af Ubuntu der bruges i dit nuværende Bash-miljø, skal du åbne et Bash-vindue og køre følgende kommando:

Det viser dig, om du kører Ubuntu 14.04 eller Ubuntu 16.04. Hvis du kører Ubuntu 14.04 og vil opgradere, læs videre. Men sørg for, at du har oprettet Creators Update: Du kan ikke opgradere til Ubuntu 16.04 LTS uden først at opgradere til Creators Update.

How to update the windows bash shell to ubuntu 16.04

Valg One: Afinstaller og geninstaller Bash Med lxrun

RELATED: Sådan afinstalleres eller geninstaller) Windows 10s Ubuntu Bash Shell

Hvis du er ligeglad med nogen tilpasninger, du har lavet til dit bash-miljø (eller du er parat til at tilpasse det igen), behøver du ikke bekymre dig om at udføre en Ubuntu opgradering. Du kan blot fjerne dit nuværende Ubuntu-billede og derefter fortælle Windows, at geninstallere et nyt Ubuntu-billede. Dette er den hurtigste måde at opgradere dit Bash-miljø på.

Åbn først et kommandopromptvindue ved at højreklikke på Start-knappen eller trykke på Windows + X på tastaturet og vælge “Kommandoprompt”. Kør følgende kommando for at afinstallere Bash-skalen. Dette vil holde din Linux-brugerkonto filer og præferencer, men sletter systemfilerne, herunder eventuelle installerede programmer og ændringer på systemniveau.

Type y for at fortsætte og Windows vil afinstallere Ubuntu 14.04 Bash-miljøet.

How to update the windows bash shell to ubuntu 16.04

Dine Bash-systemfiler fjernes nu. For at geninstallere Bash-som vil give dig Ubuntu 16.04 i stedet for Ubuntu 14.04-Kør følgende kommando:

Type y for at fortsætte, og Windows vil installere Ubuntu 16.04 Bash-miljøet. Windows foreslår automatisk, at du bruger det samme brugernavn, du tidligere brugte. Du bliver bedt om at indtaste en adgangskode efter.

How to update the windows bash shell to ubuntu 16.04

Når du er færdig, skal du køre kommandoen lsb_release -a igen, og du kan se, at du nu bruger Ubuntu 16.04. Du har adgang til den nyere software, der er tilgængelig i Ubuntu 16.04s pakkeregister.

How to update the windows bash shell to ubuntu 16.04

Mulighed to: Opgrader Ubuntu Med opgradering af opgraderinger

Hvis du har tilpasset dit Bash-miljø og installeret software, kan du måske ikke helt slette alt. I dette tilfælde kan du udføre en opgraderingskommando fra Bash-skalen. Dette vil opgradere Ubuntu fra version 14.04 til 16.04, ligesom du ville opgradere et fuldt Ubuntu-miljø til en ny version. Dette vil imidlertid tage længere tid end blot at fjerne og geninstallere Bash-filerne.

Åbn Bash-skalen og kør følgende kommando:

Dette er processen officielt anbefalet af Microsoft.

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

Når du har en stor håndfuld enheder forbundet til dit netværk, kan det være svært at få de hastigheder, du har brug for til at spille online-spil eller download media. Men med Google WiFi kan du prioritere en enhed for at opnå de bedste hastigheder på et ellers overfyldt netværk. RELATERET: Sådan bruger du servicekvalitet (QoS) for at få hurtigere internet, når du virkelig har brug for det Tilladt, det kan du også gøre på de fleste traditionelle routere, men det er bestemt ikke så enkelt og nemt som det bruger Google WiFi.

How to update the windows bash shell to ubuntu 16.04

Windows bruger “Windows-nøglen” til mange nyttige genveje. Men hvis de kommer i vejen – eller du vil bare tildele dem til forskellige funktioner – er der en måde at deaktivere dem alle i et fald i registret eller gruppepolicy editoren. Det er vigtigt at vide, at Ændringer vi vil tale om i denne artikel er pr.

How to update the windows bash shell to ubuntu 16.04

Nuo "Windows 10 Creators Update", kiekvienas, kuris įdiegs "Bash" aplinką, gaus Ubuntu 16.04 ("Xenial"). Tačiau jei anksčiau įdiegėte Bash "Anniversary Update", būsite įstrigę "Ubuntu 14.04" ("Trusty"), kol rankiniu būdu atnaujinsite.

Ubuntu 16.04 yra daugiau modernių, naujausių programinės įrangos paketų. Ubuntu 14.04 iš pradžių buvo išleistas 2014 m. Balandžio mėn., O Ubuntu 16.04 buvo išleistas 2016 m. Balandžio mėn.

Atnaujinti: Pradedant "Fall Creator Updater", "Linux" paskirstymas dabar pateikiamas parduotuvėje. Jei anksčiau įdiegėte "Ubuntu Bash" aplinką, tiesiog atidarykite "Microsoft Store", suraskite "Ubuntu" ir įdiekite ją, kad gautumėte naujausią versiją.

Kaip patikrinti, kokia versija turite Ubuntu

Jei nesate tikras, kokia Ubuntu versija naudojama dabartinėje Bash aplinkoje, atidarykite Bash langą ir paleiskite šią komandą:

Tai parodys, ar naudojate Ubuntu 14.04 ar Ubuntu 16.04. Jei naudojate Ubuntu 14.04 ir norite atnaujinti, skaitykite toliau. Tačiau įsitikinkite, kad įdiegėte "Creators Update": negalima atnaujinti į "Ubuntu 16.04 LTS" pirmą kartą nepaliekant "Creators Update".

How to update the windows bash shell to ubuntu 16.04

Pirmas variantas: pašalinkite ir iš naujo įdiekite Bash naudodami lxrun

Jei nesirūpinate dėl bet kokių jūsų "bash" aplinkoje atliktų pritaikymų (ar esate pasiruošę ją dar kartą pritaikyti), jums nereikės nerimauti dėl "Ubuntu" naujovinimo. Jūs galite tiesiog pašalinti savo dabartinį Ubuntu atvaizdą ir tada pasakyti Windows, kad iš naujo įdiegsite naują Ubuntu atvaizdą. Tai greičiausiai atnaujinti Bash aplinką.

Norėdami tai padaryti, pirmiausia atidarykite komandų eilutės langą, dešiniuoju pelės klavišu spustelėdami mygtuką Pradėti arba paspausdami klaviatūrą "Windows + X" ir pasirinkdami "Komandinė eilutė". Paleiskite šią komandą, kad pašalintumėte "Bash shell". Tai padės išsaugoti jūsų "Linux" vartotojo abonemento failus ir nuostatas, bet ištrins sistemos failus, įskaitant visas įdiegtas programas ir sistemos lygio nustatymų pakeitimus.

Įveskite y tęsti ir "Windows" pašalins "Ubuntu 14.04 Bash" aplinką.

How to update the windows bash shell to ubuntu 16.04

Jūsų "Bash" sistemos failai dabar pašalinami. Norėdami iš naujo įdiegti "Bash", kuris suteiks jums Ubuntu 16.04 vietoj Ubuntu 14.04, paleiskite šią komandą:

Įveskite y tęsti ir Windows įdiegs Ubuntu 16.04 Bash aplinką. "Windows" automatiškai pasiūlys jums naudoti tą patį anksčiau naudojamą naudotojo vardą. Jums bus paprašyta įvesti slaptažodį po.

How to update the windows bash shell to ubuntu 16.04

Kai tai bus padaryta, paleiskite lsb_release -a dar kartą pakartokite ir pamatysite, kad dabar naudojate Ubuntu 16.04. Turite prieigą prie naujesnės programinės įrangos, esančios Ubuntu 16.04 paketų saugyklose.

How to update the windows bash shell to ubuntu 16.04

Antroji galimybė: atnaujinkite "Ubuntu" su "do-release-upgrade"

Jei pritaikėte Bash aplinką ir įdiegėte programinę įrangą, galite nenorėti visiškai ištrinti visko. Tokiu atveju galite atlikti komandą naujinimo per "Bash" lange. Tai atnaujins Ubuntu nuo 14.04 iki 16.04, lygiai taip pat, kaip atnaujinsite visą "Ubuntu" aplinką naujajai versijai. Tačiau tai užtruks ilgiau nei paprasčiausiai išbraukiant ir iš naujo įdiegus "Bash" failus.

Norėdami tai padaryti, atidarykite "Bash" apvalkalo ir paleiskite šią komandą:

How to update the windows bash shell to ubuntu 16.04

Comenzando con Windows 10 Creators Update, cualquiera que instale el entorno Bash obtendrá Ubuntu 16.04 (Xenial). Pero, si ya instaló Bash en la actualización de aniversario, se encontrará con Ubuntu 14.04 (Trusty) hasta que actualice manualmente.

Ubuntu 16.04 contiene paquetes de software más modernos y actualizados. Ubuntu 14.04 se lanzó originalmente en abril de 2014, mientras que Ubuntu 16.04 se lanzó en abril de 2016.

Actualización : a partir de la Actualización de Fall Creators, las distribuciones de Linux ahora se entregan a través de la Tienda. Si instaló previamente el entorno Ubuntu Bash, simplemente abra Microsoft Store, busque “Ubuntu” e instálelo para obtener la última versión.

Cómo verificar qué versión de Ubuntu tiene

RELACIONADO: Todo lo que puede hacer con el nuevo Bash Shell de Windows 10

Si no está seguro de qué versión de Ubuntu está utilizando en su entorno Bash actual, abra una ventana Bash y ejecute el siguiente comando:

Te mostrará si estás ejecutando Ubuntu 14.04 o Ubuntu 16.04. Si está ejecutando Ubuntu 14.04 y desea actualizar, siga leyendo. Pero asegúrese de tener instalada la Actualización de creadores: no puede actualizar a Ubuntu 16.04 LTS sin actualizar primero a la Actualización de creadores.

How to update the windows bash shell to ubuntu 16.04

Opción uno: Desinstalar y reinstalar Bash con lxrun

RELACIONADO: Cómo desinstalar ( o Reinstalar) Ubuntu Bash Shell de Ubuntu 10

Si no le importan las personalizaciones que haya realizado en su entorno bash (o está preparado para personalizarlo de nuevo), no tiene que preocuparse por realizar un Actualización de Ubuntu. Simplemente puede eliminar su imagen actual de Ubuntu y luego decirle a Windows que reinstale una nueva imagen de Ubuntu. Esta es la forma más rápida de actualizar su entorno Bash.

Para hacerlo, primero abra una ventana del símbolo del sistema haciendo clic con el botón derecho en el botón Inicio o presione Windows + X en su teclado y seleccione “Símbolo del sistema”. Ejecute el siguiente comando para desinstalar el shell Bash. Esto mantendrá los archivos y las preferencias de su cuenta de usuario de Linux, pero borrará los archivos del sistema, incluidos los programas instalados y los cambios en la configuración del sistema.

Escriba y para continuar y Windows desinstalará el entorno Ubuntu 14.04 Bash.

How to update the windows bash shell to ubuntu 16.04

Los archivos de tu sistema Bash ahora se eliminaron. Para reinstalar Bash, que le proporcionará Ubuntu 16.04 en lugar de Ubuntu 14.04, ejecute el siguiente comando:

Escriba y para continuar y Windows instalará el entorno Ubuntu 16.04 Bash. Windows le sugerirá automáticamente que use el mismo nombre de usuario que utilizó anteriormente. Se le pedirá que ingrese una contraseña después de.

How to update the windows bash shell to ubuntu 16.04

Cuando haya terminado, ejecute el comando lsb_release -a una vez más y verá que ahora está utilizando Ubuntu 16.04. Usted tiene acceso al software más nuevo disponible en los repositorios de paquetes de Ubuntu 16.04.

How to update the windows bash shell to ubuntu 16.04

Opción dos: actualice Ubuntu con do-release-upgrade

Si ha personalizado su entorno Bash y el software instalado, es posible que no desee borra todo por completo En este caso, puede realizar un comando de actualización desde dentro del shell Bash. Esto actualizará Ubuntu de la versión 14.04 a la 16.04, al igual que actualizaría un entorno completo de Ubuntu a una nueva versión. Sin embargo, esto tomará más tiempo que simplemente eliminar y volver a instalar los archivos Bash.

Para hacerlo, abra el shell Bash y ejecute el siguiente comando:

Este es el proceso recomendado oficialmente por Microsoft.

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

Una simple captura de pantalla es ideal para capturar lo que está inmediatamente visible en su monitor, pero ¿qué sucede si necesita capturar una página web completa? Aquí hay tres formas simples de capturar una página web larga como una imagen continua y, en el proceso, conservarla exactamente como aparece para el espectador.

How to update the windows bash shell to ubuntu 16.04

En 2014, Google anunció una línea de teléfonos de bajo costo y baja especificación llamada Android One. En 2017, anunciaron Android Go, diseñado específicamente para teléfonos de bajo costo y baja especificación. Entonces . ¿cuál es la diferencia? ¿Qué es exactamente Android One? Para decirlo de la manera más simple posible, Android One es una especificación de hardware diseñada para mercados emergentes por Google.

How to update the windows bash shell to ubuntu 16.04

Windows 10 Oluşturucu Güncelleştirmesi ile başlayarak, Bash ortamını kuran herkes Ubuntu 16.04 (Xenial) alır. Ancak, Yıldönümü Güncellemesi’ne Bash’i daha önce yüklediyseniz, manuel olarak güncelleyene kadar Ubuntu 14.04 (Trusty) ile takılıp kalırsınız..

Ubuntu 16.04, daha modern ve güncel yazılım paketleri içerir. Ubuntu 14.04, ilk olarak Nisan 2014’te, Ubuntu 16.04, 2016 yılının Nisan ayında piyasaya sürüldü..

Güncelleştirme: Fall Creators Güncellemesi ile başlayarak, Linux dağıtımları artık Mağaza aracılığıyla gönderiliyor. Ubuntu Bash ortamını daha önce kurduysanız, Microsoft Mağazasını açın, “Ubuntu” aratın ve en son sürümü edinmek için kurun.

Ubuntu’nun Hangi Sürümüne Sahip Olduğunuz Nasıl Kontrol Edilir

Mevcut Bash ortamınızda hangi Ubuntu sürümünün kullanıldığından emin değilseniz, bir Bash penceresi açın ve aşağıdaki komutu çalıştırın:

Ubuntu 14.04 veya Ubuntu 16.04 kullanıp kullanmadığınızı gösterir. Ubuntu 14.04 kullanıyorsanız ve yükseltmek istiyorsanız, okumaya devam edin. Ancak Oluşturucu Güncelleştirmeleri’nin kurulu olduğundan emin olun: Önce Oluşturucu Güncellemesi’ne yükseltme yapmadan Ubuntu 16.04 LTS’ye yükseltme yapamazsınız..

How to update the windows bash shell to ubuntu 16.04

Seçenek Bir: Kaldır ve Bash With lxrun’u yeniden kurun

Bash ortamınıza yaptığınız herhangi bir özelleştirmeyi umursamıyorsanız (veya tekrar özelleştirmeye hazırsanız), bir Ubuntu yükseltmesi yapmak için endişelenmenize gerek yoktur. Geçerli Ubuntu resminizi kaldırabilir ve Windows’a yeni bir Ubuntu resmini yeniden yüklemesini söyleyebilirsiniz. Bash ortamınızı yükseltmenin en hızlı yolu budur.

Bunu yapmak için, önce Başlat düğmesine sağ tıklayarak veya klavyenizdeki Windows + X tuşlarına basarak ve “Komut İstemi” ni seçerek bir Komut İstemi penceresi açın. Bash kabuğunu kaldırmak için aşağıdaki komutu çalıştırın. Bu, Linux kullanıcı hesabınızın dosya ve tercihlerini koruyacaktır, ancak yüklü programlar ve sistem düzeyinde ayar değişiklikleri dahil sistem dosyalarını silecektir..

tip y devam etmek ve Windows Ubuntu 14.04 Bash ortamını kaldıracak.

How to update the windows bash shell to ubuntu 16.04

Bash sistem dosyalarınız şimdi kaldırıldı. Bash’i yeniden yüklemek için, Ubuntu 14.04 yerine Ubuntu 16.04’ü verir, aşağıdaki komutu çalıştırın:

tip y devam etmek için Windows Ubuntu 16.04 Bash ortamını yükleyecektir. Windows, daha önce kullandığınız aynı kullanıcı adını otomatik olarak kullanmanızı önerir. Sizden sonra bir şifre girmeniz istenecek.

How to update the windows bash shell to ubuntu 16.04

Tamamlandığında, koş lsb_release -a bir kez daha komut verin ve şimdi Ubuntu 16.04 kullandığınızı göreceksiniz. Ubuntu 16.04’ün paket havuzlarında bulunan yeni yazılıma erişebilirsiniz.

How to update the windows bash shell to ubuntu 16.04

İkinci Seçenek: Ubuntu’yu Yükseltme-yükseltme-yükseltme ile

Bash ortamınızı ve yüklü yazılımınızı özelleştirdiyseniz, her şeyi tamamen silmek istemeyebilirsiniz. Bu durumda, Bash kabuğunun içinden bir yükseltme komutu gerçekleştirebilirsiniz. Bu, Ubuntu’yu 14.04’ten 16.04’e yükseltir, tıpkı tam bir Ubuntu ortamını yeni bir sürüme yükseltmeniz gibi. Ancak, bu, Bash dosyalarının kaldırılması ve yeniden kurulmasından daha uzun sürer.

How to update the windows bash shell to ubuntu 16.04

For all of us who are stuck with Windows machines at work, the addition of the Ubuntu Bash Shell for Windows 10 has been a life saver. It’s crazy to think we are installing Linux packages on a Windows machine. The reality is, Ubuntu Bash is a full blown Ubuntu Kernel running on Windows 10, and it works well.

In this blog post I will show you how to setup your Windows 10 machine for Machine Learning using Ubuntu Bash Shell.

How to install Bash shell command-line tool on Windows 10

Windows 10 includes a subsystem to run Linux Bash shell to enable developers, especially web developers and those who…

It’s important to upgrade to version 16.04 as the default version. The previous version 14.04 has some problems when working with Jupyter notebooks.

How to Update the Windows Bash Shell to Ubuntu 16.04

Starting with the Windows 10 Creators Update, anyone who installs the Bash environment will get Ubuntu 16.04 (Xenial)…

I have found conda to be the best package and environment management system for Python. Conda is great for creating sand-boxed environments.

It is advised to install MiniConda as the full conda installation installs 1000’s of packages and takes a long time to install. By installing MiniConda you will be up & running in a few minutes.

Run the Miniconda install

It’s ideal to create a new environment to work with different versions of your libraries and packages.

Lets create a Python 2.7 and Numpy 1.13 environment with the latest scipy library installed. This environment will be completely isolated from the rest of your conda managed environments.

You should now see a list of all the environments you’ve created.

Install scikit-learn to round off your Machine Learning environment.

Using conda to install Tensorflow is easy, and it is advised to create a new environment when you enter the world of Deep Learning.

Install packages needed for data processing and visualisation.

To install Tensorflow follow the Tensorflow installation guide for Anaconda.

Installing TensorFlow on Ubuntu | TensorFlow

Docker completely isolates the TensorFlow installation from pre-existing packages on your machine. The Docker container…

Find the correct package for your machine and operating system — in our case we are looking for the CPU-only Python 3.6 package.

Jupyter is the unsung hero of Machine Learning. Activate the desired environment and start a Jupyter note book, you are now ready for serious Machine Learning.

Make sure to start with the — no-browser attribute.

Browse to the URL as specified in Bash.

This guide is not intended to be the definitive guide on setting up a machine for Machine Learning, but rather to give you a good default Python environment for Machine Learning that is extendable on Windows using Bash Shell.

Thanks for reading. Don’t forget to hit that ‘clap’ button 👏👏

Let me know what you think of Ubuntu Bash on Windows 10 as a Machine Learning platform in the comments below.

I’m the owner of an artificial intelligence company. We use smart technology to create custom solutions for clients all over the world. Visit our website or LinkedIn page to find out more.

Neural Networks Easily Fooled — Check out my latest post on fooling neural networks.

This guide borrows heavily from the excellent PyData talk by Jake VanderPlas.

How to update the windows bash shell to ubuntu 16.04

Počínaje aktualizací Windows 10 Creators, každý, kdo nainstaluje prostředí Bash, dostane Ubuntu 16.04 (Xenial). Pokud jste však dříve nainstalovali Bash v aktualizaci Anniversary, budete přilepený na Ubuntu 14.04 (Trusty), dokud nebudete ručně aktualizovat.

Ubuntu 16.04 obsahuje více moderních, nejmodernějších softwarových balíčků. Ubuntu 14.04 byl původně vydán v dubnu 2014, zatímco Ubuntu 16.04 byl propuštěn v dubnu 2016.

Aktualizace: Počínaje aktualizací Fall Creators, distribuce Linuxu jsou nyní doručovány prostřednictvím obchodu. Pokud jste dříve nainstalovali prostředí Ubuntu Bash, stačí otevřít obchod Microsoft Store, vyhledat "Ubuntu" a nainstalovat jej, abyste získali nejnovější verzi.

Jak zjistit, jakou verzi systému Ubuntu máte

Pokud si nejste jisti, která verze Ubuntu se používá ve vašem aktuálním prostředí Bash, otevřete okno Bash a spusťte následující příkaz:

Ukáže vám, zda používáte Ubuntu 14.04 nebo Ubuntu 16.04. Pokud používáte Ubuntu 14.04 a chcete aktualizovat, přečtěte si. Ale ujistěte se, že máte nainstalovanou aktualizaci Tvůrce: Nejdříve nelze upgradovat na Ubuntu 16.04 LTS, aniž byste nejprve přešli na Aktualizaci autorů.

How to update the windows bash shell to ubuntu 16.04

Možnost jedna: odinstalovat a znovu nainstalovat bash s lxrun

Pokud se nestaráte o nějaké přizpůsobení, které jste provedli v prostředí bash (nebo jste připraveni jej znovu přizpůsobit), nemusíte se starat o provedení upgradu na Ubuntu. Stačí jednoduše odstranit váš aktuální obraz Ubuntu a poté Windows požádat o přeinstalaci nového obrázku Ubuntu. Toto je nejrychlejší způsob, jak upgradovat prostředí Bash.

Chcete-li to provést, nejprve otevřete okno Příkazový řádek kliknutím pravým tlačítkem myši na tlačítko Start nebo stisknutím klávesy Windows + X na klávesnici a výběrem možnosti "Příkazový řádek". Spusťte následující příkaz k odinstalování shell Bash. Tím se zachovají soubory a předvolby uživatelského účtu systému Linux, ale vymažou se systémové soubory včetně všech nainstalovaných programů a nastavení na systémové úrovni.

Typ y pokračovat a systém Windows odinstaluje prostředí Ubuntu 14.04 Bash.

How to update the windows bash shell to ubuntu 16.04

Soubory systému Bash jsou nyní odebrány. Chcete-li přeinstalovat Bash – což vám místo Ubuntu 14.04 Ubuntu 16.04 udělí následující příkaz:

Typ y pokračovat a systém Windows nainstaluje prostředí Ubuntu 16.04 Bash. Systém Windows automaticky navrhne použít stejné uživatelské jméno, které jste dříve používali. Po zadání hesla budete vyzváni k zadání hesla.

How to update the windows bash shell to ubuntu 16.04

Když to bude hotovo, spusťte lsb_release -a příkaz znovu a uvidíte, že používáte Ubuntu 16.04. Máte přístup k novějšímu softwaru, který je k dispozici v úložištích balíků Ubuntu 16.04.

How to update the windows bash shell to ubuntu 16.04

Možnost 2: Upgrade Ubuntu S up-release-upgrade

Pokud jste si přizpůsobili prostředí Bash a nainstalovaný software, možná nebudete chtít úplně vymazat vše. V tomto případě můžete provést příkaz pro upgrade z prostředí Bash shell. To upgraduje Ubuntu od verze 14.04 na 16.04, stejně jako byste upgradovali plné prostředí Ubuntu na novou verzi. Bude to však trvat déle, než jednoduše odebrat a znovu nainstalovat soubory Bash.

Chcete-li to provést, otevřete shell Bash a spusťte následující příkaz:

Tento proces je oficiálně doporučován společností Microsoft.

How to update the windows bash shell to ubuntu 16.04

A Windows 10 Creators frissítésével kezdődően mindenki, aki telepíti a Bash környezetet, megkapja az Ubuntu 16.04 (Xenial) fájlt. De ha korábban telepítette a Bash-et az évfordulós frissítésben, az Ubuntu 14.04 (Trusty) használatával megmarad, amíg kézzel frissíti.

Az Ubuntu 16.04 modern, naprakész szoftvercsomagokat tartalmaz. Az Ubuntu 14.04-et eredetileg 2014 áprilisában adták ki, míg az Ubuntu 16.04 kiadása 2016. áprilisában jelent meg.

frissítés: Az Őszi alkotók frissítésével kezdődően a Linux disztribúciók mostantól az áruházon keresztül érkeznek. Ha korábban telepítette az Ubuntu Bash környezetet, csak nyissa meg a Microsoft Store-ot, keressen az "Ubuntu" -ra, és telepítse a legújabb verzióra.

Hogyan ellenőrizhető az Ubuntu verziója?

Ha nem biztos benne, hogy az Ubuntu jelenlegi verzióját a jelenlegi Bash környezetben használja, nyissa meg a Bash ablakot, és futtassa a következő parancsot:

Megmutatja, hogy fut-e Ubuntu 14.04 vagy Ubuntu 16.04. Ha az Ubuntu 14.04 rendszert futtatja és frissíteni szeretne, olvasd el. De győződjön meg róla, hogy telepítve van az Alkotások frissítése: Az Ubuntu 16.04 LTS-re nem frissíthető az elsőnek a Teremtők frissítésével történő frissítése nélkül.

How to update the windows bash shell to ubuntu 16.04

Az első lehetőség: távolítsa el és telepítse újra a bash-ot az lxrun-val

Ha nem törődsz a bash-környezetedhez készített testreszabásokkal (vagy hajlandó újra testre szabni), akkor nem kell aggódnia az Ubuntu frissítésének végrehajtása miatt. Egyszerűen távolíthatja el az aktuális Ubuntu képét, majd utána a Windows-nak új Ubuntu-képet telepíthet. Ez a leggyorsabb módja a Bash környezet frissítéséhez.

Ehhez először nyissa meg a Parancssor ablakot a jobb egérgombbal a Start gombra vagy a Windows + X billentyűzet megnyomásával és a "Parancssor" lehetőség kiválasztásával. Indítsa el a következő parancsot a Bash shell eltávolításához. Ez megtartja a Linux felhasználói fiókjának fájljait és beállításait, de törli a rendszerfájlokat, beleértve a telepített programokat és a rendszer szintű beállításváltozásokat.

típus y folytatni, és a Windows eltávolítja az Ubuntu 14.04 Bash környezetet.

How to update the windows bash shell to ubuntu 16.04

A Bash rendszerfájljait most eltávolítottuk. A Bash újratelepítéséhez – amely az Ubuntu 14.04 helyett Ubuntu 16.04-et ad – az alábbi parancsot futtatja:

típus y folytatni és a Windows telepíti az Ubuntu 16.04 Bash környezetet. A Windows automatikusan azt javasolja, hogy használja ugyanazt a felhasználónevet, amelyet előzőleg használt. A rendszer felkéri a jelszót.

How to update the windows bash shell to ubuntu 16.04

Amikor elkészült, futtassa a lsb_release -a parancsot, és látni fogod, hogy most az Ubuntu 16.04-et használja. Hozzáférhet az Ubuntu 16.04 csomagtartalmaihoz rendelkezésre álló újabb szoftverhez.

How to update the windows bash shell to ubuntu 16.04

Második lehetőség: Az Ubuntu frissítése A do-release-upgrade paranccsal

Ha testre szabta a Bash-környezetet és a telepített szoftvert, előfordulhat, hogy nem kíván teljesen törölni. Ebben az esetben frissítési parancsot hajthat végre a Bash rendszerben. Ez frissíti az Ubuntu-t a 14.04-ről 16.04-re, éppúgy, mint ha teljes Ubuntu környezetet frissít egy új verzióra. Ez azonban hosszabb ideig tart, mint a Bash fájlok eltávolítása és újratelepítése.

Ehhez nyissa meg a Bash shell parancsot, és futtassa a következő parancsot:

You can’t help but have noticed that Microsoft has started the rollout of Windows 10 Creators Update. After testing with Windows Insiders, the third big update to Windows 10 is finally making its way to the masses. But while Creators Update brings some pretty major changes to Windows 10, Windows Subsystem for Linux is not automatically updated.

The arrival of Bash/Windows Subsystem for Linux (WSL) in Windows 10 Anniversary Update meant Ubuntu 14.04 support, but you can now manually update to gain Ubuntu 16.04 support in Creators Update. Microsoft says you need to perform one of two manual update methods: the recommended option of “Remove & Replace”, or “Upgrade In-Place.” Here’s how to perform the update.

Before you can proceed with this update you will — perhaps obviously — need to have Windows Subsystem For Linux enabled on your computer. If you’re reading this, it’s likely that you have already done this but, for the sake of completeness, here’s how to enable it:

  • Open Settings and head to Update & security.
  • Click For developers to the left and then select Developer mode to the right.
  • Now launch the Control Panel and open up Programs and Features.
  • Click Turn Windows features on or off and then check the box labeled Windows Subsystem for Linux (Beta).
  • Click OK and restart your computer when prompted.

If you want to check what version of WSL you have at the moment, run the following command:

If you are running Ubuntu 14.04 — as you most probably are — you can use Microsoft’s recommendation of performing a Remove and Replace update. Before you go ahead and do this, you should make copies of any Linux files you want to keep as they will be deleted. This done, run the following command:

C:\> lxrun /uninstall /full /y

C:\> lxrun /install

You can, if you prefer, perform an in-place upgrade using the following command:

How to update the windows bash shell to ubuntu 16.04

A partir da Atualização dos Criadores do Windows 10, qualquer pessoa que instale o ambiente Bash obterá o Ubuntu 16.04 (Xenial). Mas, se você já instalou o Bash na Atualização de Aniversário, você ficará preso ao Ubuntu 14.04 (Trusty) até que você faça a atualização manualmente.

O Ubuntu 16.04 contém pacotes de software mais modernos e atualizados. O Ubuntu 14.04 foi originalmente lançado em abril de 2014, enquanto o Ubuntu 16.04 foi lançado em abril de 2016.

Atualização : A partir da atualização para criadores de outono, as distribuições Linux agora são entregues pela loja. Se você instalou anteriormente o ambiente Ubuntu Bash, basta abrir a Microsoft Store, procurar por “Ubuntu” e instalá-lo para obter a versão mais recente.

Como verificar qual versão do Ubuntu você tem

RELACIONADAS: Tudo o que você pode fazer com o novo Bash Shell do Windows 10

Se não tiver certeza de qual versão do Ubuntu está sendo usada em seu ambiente Bash atual, abra uma janela Bash e execute o seguinte comando:

Ele mostrará se você está executando o Ubuntu 14.04 ou o Ubuntu 16.04. Se você estiver executando o Ubuntu 14.04 e quiser atualizar, continue lendo. Mas certifique-se de ter a Atualização de criadores instalada: Não é possível atualizar para o Ubuntu 16.04 LTS sem antes atualizar para a Atualização de criadores.

How to update the windows bash shell to ubuntu 16.04

Opção 1: desinstalar e reinstalar o Bash com lxrun

RELACIONADOS: Como desinstalar ( ou Reinstalar) Ubuntu Bash Shell do Windows 10

Se você não se importa com as personalizações que fez no seu ambiente bash (ou está preparado para personalizá-lo novamente), não precisa se preocupar em executar Atualização do Ubuntu. Você pode simplesmente remover sua imagem atual do Ubuntu e, em seguida, dizer ao Windows para reinstalar uma nova imagem do Ubuntu. Essa é a maneira mais rápida de atualizar seu ambiente Bash.

Para fazer isso, primeiro abra uma janela do Prompt de Comando clicando com o botão direito do mouse no botão Iniciar ou pressionando Windows + X no teclado e selecionando “Prompt de Comando”. Execute o seguinte comando para desinstalar o shell Bash. Isso manterá os arquivos e as preferências da sua conta de usuário do Linux, mas apagará os arquivos do sistema, incluindo quaisquer programas instalados e alterações de configurações no nível do sistema.

Digite y para continuar e Windows irá desinstalar o ambiente de Bash do Ubuntu 14.04.

How to update the windows bash shell to ubuntu 16.04

Os seus arquivos de sistema Bash são agora removidos. Para reinstalar o Bash – que lhe dará o Ubuntu 16.04 em vez do Ubuntu 14.04 – execute o seguinte comando:

Digite y para continuar e o Windows instalará o ambiente do Ubuntu 16.04 Bash. O Windows sugere automaticamente que você use o mesmo nome de usuário usado anteriormente. Você será solicitado a digitar uma senha depois.

How to update the windows bash shell to ubuntu 16.04

Quando terminar, execute novamente o comando lsb_release -a e você verá que agora está usando o Ubuntu 16.04. Você tem acesso ao mais recente software disponível nos repositórios de pacotes do Ubuntu 16.04.

How to update the windows bash shell to ubuntu 16.04

Opção 2: Atualizar o Ubuntu Com o fazer-release-upgrade

Se você personalizou seu ambiente Bash e o software instalado, talvez não queira apagar completamente tudo. Nesse caso, você pode executar um comando de atualização a partir do shell Bash. Isso irá atualizar o Ubuntu da versão 14.04 para 16.04, assim como você atualizaria um ambiente Ubuntu completo para uma nova versão. No entanto, isso levará mais tempo do que simplesmente remover e reinstalar os arquivos Bash.

Para fazer isso, abra o shell Bash e execute o seguinte comando:

Esse é o processo recomendado oficialmente pela Microsoft.

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

Se você gosta de gastar tempo jogando com outras pessoas on-line, criar um evento no PlayStation 4 ou Pro é uma maneira fácil de fazer com que todos juntos ao mesmo tempo, no mesmo jogo. Veja como configurar um. O que são eventos? RELACIONADOS: Como bloquear alguém no PlayStation 4 ou Pro Basicamente, os Eventos são uma maneira de agendar uma sessão de jogo com sua equipe você pode definir a hora, escolher o jogo e convidar pessoas da sua lista de amigos, um grupo de mensagens ou uma comunidade inteira.

How to update the windows bash shell to ubuntu 16.04

RELACIONADAS: O que há de novo na atualização para criadores do Windows 10 As edições Professional, Enterprise e Education do Windows 10 oferecem mais controle sobre o Windows Update do que a edição doméstica. Se você tiver uma dessas edições, começando pela Atualização de criadores, poderá pausar o recebimento de atualizações e adiar algumas atualizações por até um ano.

How to update the windows bash shell to ubuntu 16.04

Nuo “Windows 10 Creators Update” visiems, kurie įdiegia “Bash” aplinką, bus “Ubuntu 16.04” (“Xenial”). Tačiau jei anksčiau įdiegėte “Bash” į “Anniversary Update”, “Ubuntu 14.04” (“Trusty”) būsite įstrigę, kol rankiniu būdu nepagerinsite.

“Ubuntu 16.04” yra daugiau modernių, naujausių programinės įrangos paketų. “Ubuntu 14.04” iš pradžių buvo išleistas 2014 m. Balandžio mėn., O “Ubuntu 16.04” buvo išleistas 2016 m. Balandžio mėn.

Atnaujinta : nuo “Fall Creators Update”, “Linux” paskirstymai dabar pristatomi per “Store”. Jei anksčiau įdiegėte “Ubuntu Bash” aplinką, tiesiog atidarykite “Microsoft Store”, suraskite “Ubuntu” ir įdiekite ją, kad gautumėte naujausią versiją.

Kaip patikrinti, kokia versija Ubuntu turite

SUSIJĘS: Viskas, ką galite padaryti, naudodami “Windows 10” naująjį “Bash Shell”

Jei nesate tikri, kokia Ubuntu versija naudojama dabartinėje “Bash” aplinkoje, atidarykite Bash langą ir paleiskite šią komandą:

Ji parodys, ar naudojate Ubuntu 14.04 arba Ubuntu 16.04. Jei naudojate Ubuntu 14.04 ir norite atnaujinti, skaitykite toliau. Tačiau įsitikinkite, kad įdiegėte “Creators Update”: jūs negalite atnaujinti į “Ubuntu 16.04 LTS”, neperskaitę į “Creators Update” pirmiausia.

How to update the windows bash shell to ubuntu 16.04

Pirmas variantas: pašalinkite ir iš naujo įdiekite Bash naudojant lxrun

SUSIJĘS: Kaip pašalinti ( arba iš naujo įdiekite) “Windows 10” “Ubuntu Bash Shell”

Jei jums nereikia rūpintis bet kokiais jūsų “bash” aplinkos nustatytomis adaptacijomis (ar esate pasiruošę ją dar kartą pritaikyti), nereikia jaudintis dėl ” Ubuntu naujinimas. Jūs galite tiesiog pašalinti savo dabartinį Ubuntu atvaizdą ir tada pasakyti Windows, kad iš naujo įdiegsite naują Ubuntu atvaizdą. Tai yra greitesnis būdas atnaujinti Bash aplinką.

Norėdami tai padaryti, pirmiausia atidarykite komandų eilutės langą, dešiniuoju pelės klavišu spustelėdami mygtuką Pradėti arba paspausdami klaviatūrą “Windows + X” ir pasirinkdami “Komandinė eilutė”. Paleiskite šią komandą, kad pašalintumėte “Bash shell”. Tai padės išlaikyti jūsų “Linux” vartotojo abonemento failus ir parinktis, bet ištrins sisteminius failus, įskaitant visas įdiegtas programas ir sistemos lygmens nustatymų pakeitimus.

Įveskite y , kad tęstumėte ir Windows pašalins Ubuntu 14.04 Bash aplinką.

How to update the windows bash shell to ubuntu 16.04

Jūsų “Bash” sistemos failai dabar pašalinami. Norėdami iš naujo įdiegti “Bash”, kuris suteiks jums Ubuntu 16.04 vietoj Ubuntu 14.04, paleiskite šią komandą:

Įveskite y , kad tęstumėte, o Windows įdiegs Ubuntu 16.04 Bash aplinką. “Windows” automatiškai pasiūlys jums naudoti tą patį anksčiau naudojamą naudotojo vardą. Būsite paprašyta įvesti slaptažodį po.

How to update the windows bash shell to ubuntu 16.04

Kai tai bus padaryta, vėl paleiskite komandą lsb_release -a ir pamatysite, kad dabar naudojate Ubuntu 16.04. Jūs turite prieigą prie naujesnės programinės įrangos, esančios Ubuntu 16.04 paketų saugyklose.

How to update the windows bash shell to ubuntu 16.04

Antrasis variantas: “Ubuntu” atnaujinimas su “do-release-upgrade”

Jei pritaikėte Bash aplinką ir įdiegtą programinę įrangą, galite nenorėti visiškai ištrinti viską. Tokiu atveju galite atlikti komandą naujinimo per “Bash” lange. Tai atnaujins Ubuntu nuo 14.04 iki 16.04, lygiai taip pat, kaip atnaujinsite visą “Ubuntu” aplinką naujajai versijai.

Norėdami tai padaryti, atidarykite “Bash” apvalkalo ir paleiskite šią komandą:

Šis procesas yra oficialiai rekomenduojamas. Microsoft.

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

Daugeliui žmonių, susipažinusiose su ankstesnėmis” Windows “versijomis, įdomu, kas atsitiko su visada sukurta integruotos administratoriaus paskyra pagal nutylėjimą. Ar ši sąskaita vis dar egzistuoja ir kaip galite ją pasiekti? Sąskaita sukurta “Windows 10”, “8”, “7” ar “Vista”, bet kadangi ji neįjungta, jos negalima naudoti.

How to update the windows bash shell to ubuntu 16.04

Nesvarbu, ar esate įsijungę į kompiuterį, lygindami įvairias sistemas ar tiesiog pagarbėję savo aparatine įranga, palyginamumas kiekybiškai įvertina kompiuterio našumą. “Windows” turi didelę naudingų lyginamosios analizės programų ekosistemą, o daugelis jų yra nemokamos. Prieš atlikdami kokį nors lyginamąjį standartą, įsitikinkite, kad jūsų kompiuteryje nėra nieko kito.

How to update the windows bash shell to ubuntu 16.04

Från och med uppdateringen av Windows 10 Creators kommer alla som installerar Bash-miljön att få Ubuntu 16.04 (Xenial). Men om du tidigare har installerat Bash i årsdagens uppdatering, sitter du fast med Ubuntu 14.04 (Trusty) tills du manuellt uppgraderar.

Ubuntu 16.04 innehåller mer moderna, aktuella mjukvarupaket. Ubuntu 14.04 släpptes ursprungligen i april 2014, medan Ubuntu 16.04 släpptes i april 2016.

Uppdatering: Från och med Fall Creators Update, levereras Linux-distributioner via butiken. Om du tidigare installerat Ubuntu Bash-miljön öppnar du bara Microsoft Store, söker efter "Ubuntu" och installerar den för att få den senaste versionen.

Så här kontrollerar du vilken version av Ubuntu du har

Om du inte är säker på vilken version av Ubuntu som används i din nuvarande Bash-miljö öppnar du ett Bash-fönster och kör följande kommando:

Det visar om du kör Ubuntu 14.04 eller Ubuntu 16.04. Om du kör Ubuntu 14.04 och vill uppgradera, läs vidare. Men se till att du har skaparuppdateringen installerad: Du kan inte uppgradera till Ubuntu 16.04 LTS utan att först uppgradera till Creators Update.

How to update the windows bash shell to ubuntu 16.04

Alternativ One: Avinstallera och installera omhop med lxrun

Om du inte bryr dig om några anpassningar du har gjort till din bash-miljö (eller du är beredd att anpassa den igen) behöver du inte oroa dig för att utföra en Ubuntu-uppgradering. Du kan helt enkelt ta bort din nuvarande Ubuntu-bild och sedan berätta för Windows om du vill installera om en ny Ubuntu-bild. Det här är det snabbaste sättet att uppgradera din Bash-miljö.

För att göra detta, öppna först ett Kommandotolken genom att högerklicka på Start-knappen eller trycka på Windows + X på tangentbordet och välj "Kommandotolk". Kör följande kommando för att avinstallera Bash-skalet. Detta kommer att behålla ditt Linux-användarkonto s filer och inställningar, men kommer att radera systemfilerna, inklusive eventuella installerade program och inställningar på systemnivå ändras.

Typ y att fortsätta och Windows avinstallerar Ubuntu 14.04 Bash-miljön.

How to update the windows bash shell to ubuntu 16.04

Dina Bash-systemfiler tas nu bort. För att återinstallera Bash-vilket ger dig Ubuntu 16.04 istället för Ubuntu 14.04-run följande kommando:

Typ y att fortsätta och Windows installerar Ubuntu 16.04 Bash-miljön. Windows föreslår automatiskt att du använder samma användarnamn som du tidigare använde. Du kommer att bli ombedd att ange ett lösenord efter.

How to update the windows bash shell to ubuntu 16.04

När det är klart kör du lsb_release -a kommandot igen och du ser att du använder Ubuntu 16.04 nu. Du har tillgång till den nyare mjukvaran som finns i Ubuntu 16.04s paketförråd.

How to update the windows bash shell to ubuntu 16.04

Alternativ två: Uppgradera Ubuntu Med uppgradering av uppgraderingar

Om du har anpassat din Bash-miljö och installerad programvara kanske du inte vill radera allt. I det här fallet kan du utföra ett uppgraderingskommando från Bash-skalet. Detta kommer att uppgradera Ubuntu från version 14.04 till 16.04, precis som att du skulle uppgradera en fullständig Ubuntu-miljö till en ny version. Det här tar dock längre tid än att bara ta bort och installera om Bash-filerna igen.

För att göra detta öppnar du Bash-skalet och kör följande kommando:

How to update the windows bash shell to ubuntu 16.04

Începând cu actualizarea Windows 10 Creators, oricine instalează mediul Bash va primi Ubuntu 16.04 (Xenial). Dar, dacă ați instalat anterior Bash în Update Anniversary, veți fi blocați cu Ubuntu 14.04 (Trusty) până când actualizați manual.

Ubuntu 16.04 conține mai multe pachete software moderne și actualizate. Ubuntu 14.04 a fost lansat inițial în aprilie 2014, în timp ce Ubuntu 16.04 a fost lansat în aprilie 2016.

Actualizați: Începând cu actualizarea Fall Creators, distribuțiile Linux sunt acum livrate prin intermediul magazinului. Dacă ați instalat anterior mediul Ubuntu Bash, trebuie doar să deschideți magazinul Microsoft, căutați "Ubuntu" și instalați-l pentru a obține cea mai recentă versiune.

Cum să verificați ce versiune de Ubuntu aveți

Dacă nu sunteți sigur care versiune de Ubuntu este utilizată în mediul actual Bash, deschideți o fereastră Bash și executați următoarea comandă:

Vă va arăta dacă executați Ubuntu 14.04 sau Ubuntu 16.04. Dacă rulați Ubuntu 14.04 și doriți să faceți upgrade, citiți mai departe. Dar asigurați-vă că aveți instalat Update Creators: Nu puteți face upgrade la Ubuntu 16.04 LTS fără a trece mai întâi la actualizarea Creatorilor.

How to update the windows bash shell to ubuntu 16.04

Opțiunea unu: dezinstalați și reinstalați bash cu lxrun

Dacă nu vă pasă de personalizările pe care le-ați făcut în mediul dvs. de bash (sau sunteți pregătit să-l personalizați din nou), nu trebuie să vă faceți griji cu privire la efectuarea unui upgrade Ubuntu. Puteți să eliminați imaginea curentă a Ubuntu și apoi să îi spuneți Windows să reinstaleze o nouă imagine Ubuntu. Aceasta este cea mai rapidă modalitate de a vă îmbunătăți mediul Bash.

Pentru a face acest lucru, deschideți mai întâi o fereastră Prompt Command făcând clic cu butonul din dreapta pe butonul Start sau apăsând Windows + X de pe tastatură și selectând "Command Prompt". Rulați următoarea comandă pentru a dezinstala shell-ul Bash. Acest lucru va păstra fișierele și preferințele contului dvs. de utilizator Linux, dar va șterge fișierele de sistem, inclusiv toate programele instalate și setările la nivel de sistem.

Tip y pentru a continua și Windows va dezinstala mediul Ubuntu 14.04 Bash.

How to update the windows bash shell to ubuntu 16.04

Fișierele dvs. de sistem Bash sunt eliminate acum. Pentru a reinstala Bash-care vă va oferi Ubuntu 16.04 în loc de Ubuntu 14.04 – rulați următoarea comandă:

Tip y pentru a continua și Windows va instala mediul Ubuntu 16.04 Bash. Windows vă va sugera automat să utilizați același nume de utilizator pe care l-ați utilizat anterior. Vi se va cere să introduceți o parolă după.

How to update the windows bash shell to ubuntu 16.04

Când sa terminat, rulați lsb_release -a comanda încă o dată și veți vedea că acum folosiți Ubuntu 16.04. Aveți acces la software-ul mai nou disponibil în depozitele de pachete ale Ubuntu 16.04.

How to update the windows bash shell to ubuntu 16.04

Varianta a doua: Upgrade Ubuntu Cu do-release-upgrade

Dacă ați personalizat mediul dvs. Bash și software-ul instalat, este posibil să nu doriți să ștergeți complet totul. În acest caz, puteți efectua o comandă de upgrade din cadrul shell-ului Bash. Acest lucru va face upgrade Ubuntu de la versiunea 14.04 la 16.04, la fel cum ați face upgrade la un mediu Ubuntu complet la o nouă versiune. Cu toate acestea, acest lucru va dura mai mult decât pur și simplu eliminarea și reinstalarea fișierelor Bash.

Pentru aceasta, deschideți shell-ul Bash și executați următoarea comandă:

How to update the windows bash shell to ubuntu 16.04

Fra og med Windows 10 Creators Update, vil alle som installerer Bash-miljøet få Ubuntu 16.04 (Xenial). Men hvis du tidligere har installert Bash i jubileumsoppdateringen, sitter du fast med Ubuntu 14.04 (Trusty) til du oppgraderer manuelt.

Ubuntu 16.04 inneholder nyere og oppdaterte programvarepakker. Ubuntu 14.04 ble opprinnelig utgitt i april 2014, mens Ubuntu 16.04 ble utgitt i april 2016.

Oppdatering : Fra og med Fall Creators Update, leveres Linux-distribusjoner nå via butikken. Hvis du tidligere installerte Ubuntu Bash-miljøet, åpner du bare Microsoft Store, søker etter “Ubuntu” og installerer den for å få den nyeste versjonen.

Slik kontrollerer du hvilken versjon av Ubuntu du har

RELATERT: Alt du kan gjøre med Windows 10’s nye Bash Shell

Hvis du ikke er sikker på hvilken versjon av Ubuntu som brukes i ditt nåværende Bash-miljø, åpner du et Bash-vindu og kjører følgende kommando:

Det vil vise deg om du kjører Ubuntu 14.04 eller Ubuntu 16.04. Hvis du kjører Ubuntu 14.04 og vil oppgradere, les videre. Men vær sikker på at du har oppgraderingsoppdateringen installert: Du kan ikke oppgradere til Ubuntu 16.04 LTS uten å oppgradere til Creators Update først.

How to update the windows bash shell to ubuntu 16.04

Alternativ One: Avinstaller og installer Bash med lxrun

RELATED: Slik avinstallerer du eller reinstallere) Windows 10s Ubuntu Bash Shell

Hvis du ikke bryr deg om noen tilpasninger du har gjort i ditt bash-miljø (eller du er forberedt på å tilpasse den igjen), trenger du ikke å bekymre deg for å utføre en Ubuntu oppgradering. Du kan ganske enkelt fjerne ditt nåværende Ubuntu-bilde og deretter fortelle Windows om å installere et nytt Ubuntu-bilde. Dette er den raskeste måten å oppgradere Bash-miljøet på.

For å gjøre dette, åpner du først et kommandopromptvindu ved å høyreklikke på Start-knappen eller trykke på Windows + X på tastaturet og velge “Kommandoprompt”. Kjør følgende kommando for å avinstallere Bash-skallet. Dette vil holde Linux-brukerkontoens filer og preferanser, men vil slette systemfilene, inkludert eventuelle installerte programmer og systemnivåinnstillinger endres.

Type y for å fortsette og Windows vil avinstallere Ubuntu 14.04 Bash-miljøet.

How to update the windows bash shell to ubuntu 16.04

Bash-systemfilene dine er nå fjernet. Hvis du vil installere Bash igjen, som vil gi deg Ubuntu 16.04 i stedet for Ubuntu 14.04, kjør følgende kommando:

Type y for å fortsette, og Windows vil installere Ubuntu 16.04 Bash-miljøet. Windows foreslår automatisk at du bruker det samme brukernavnet du brukte tidligere. Du blir bedt om å skrive inn et passord etter.

How to update the windows bash shell to ubuntu 16.04

Når du er ferdig, kjør kommandoen lsb_release -a igjen, og du ser at du bruker Ubuntu 16.04. Du har tilgang til den nyere programvaren som er tilgjengelig i Ubuntu 16.04s pakkelager.

How to update the windows bash shell to ubuntu 16.04

Alternativ To: Oppgradere Ubuntu Med oppgradering av oppgraderinger

Hvis du har tilpasset Bash-miljøet og installert programvare, kan det hende du ikke vil helt slette alt. I dette tilfellet kan du utføre en oppgraderingskommando fra Bash-skallet. Dette vil oppgradere Ubuntu fra versjon 14.04 til 16.04, akkurat som du vil oppgradere et fullt Ubuntu-miljø til en ny versjon. Dette vil imidlertid ta lengre tid enn å bare fjerne og installere Bash-filene.

For å gjøre dette, åpne Bash-skjellet og kjør følgende kommando:

Dette er prosessen offisielt anbefalt av Microsoft.

How to update the windows bash shell to ubuntu 16.04

How to update the windows bash shell to ubuntu 16.04

Med den nye (eller nye til deg ) Google Assistant kan du styre smart hjemme-enheter som Nest termostat, Hue lys, og mer med bare din stemme – rett fra telefonen din. Slik setter du dem opp. For å kontrollere en enhet fra Google Assistant må du først legge den til i Google-kontoen din. For tiden støtter Google bare smarthome-enheter fra fem selskaper som er native: Honeywell, Nest, Philips Hue, Samsung SmartThings og Belkin WeMo.

How to update the windows bash shell to ubuntu 16.04

Windows 10 inneholder en telemetri-tjeneste som automatisk sender diagnostikk- og bruksdata om datamaskinen din til Microsoft. Disse innstillingene har forårsaket mye kontrovers siden Windows 10s utgivelse, men hva gjør de egentlig? I dag ser vi på hva slags data dette faktisk sender til Microsoft. Du kan velge ønsket telemetri nivå eller “diagnostisk og bruk data” nivå – fra Innstillinger> Personvern> Tilbakemelding og diagnostikk.

At //Build 2016, Microsoft announced the ability to run native Bash and GNU/Linux command-line tools directly on the new Windows Subsystem for Linux (WSL), coming soon to Windows 10 Anniversary Update builds.

We’ve been amazed by the overwhelming outpouring of interest about this new feature over the last week. One of the most frequent questions we’re asked is “When can I get my hands on Bash on Ubuntu on Windows?

We’ve held-off giving a date until we were 100% sure it’s available … but that date is NOW !

This build contains the first public release of Bash on Ubuntu on Windows and the underlying Windows Subsystem for Linux.

Installing Bash on Ubuntu on Windows

Important: To run Bash/WSL, you must be running a 64-bit version of Windows 10 on a 64-bit PC. If you do NOT see “Windows Subsystem for Linux” listed in the optional features, you are likely not running a 64-bit version of Windows 10 , or are running a build of Windows 10 prior to #14316.

Once you’re upgraded to this new build, you’ll need to complete the installation steps summarized below:

  1. Turn on Developer Mode: Settings | Update & Security | For Developers | Check the Developer Mode radio button: How to update the windows bash shell to ubuntu 16.04How to update the windows bash shell to ubuntu 16.04How to update the windows bash shell to ubuntu 16.04
  2. Hit okay and reboot (required step)
  3. Once rebooted, open a PowerShell/command prompt and run “Bash” and follow the simple prompts to accept Canonical’s license and kick-off the download of the Ubuntu image: How to update the windows bash shell to ubuntu 16.04
  4. After download has completed, you’ll be able to start “Bash on Ubuntu on Windows” from the Start menu: alt=”5-startbash” width=”300″ height=”74″ />How to update the windows bash shell to ubuntu 16.04Related Release Notes
  • As we’ve repeatedly stated, this is the first time we’ve released this feature and we knowthere will be issues – be sure to share your feedback via the channels below
  • We do know of an issue that crashes settings if you’re running Windows 10 “N” SKU’s – we’re working on a fix for this problem in future builds
  • In this build, Bash will show you running under the ‘root’ Linux user account
    • This does NOT give Bash elevated permissions within Windows, unless you run Bash as Administrator
    • This means that, by default, from within Bash, you will only have access to Windows files and folders that your current Windows user account has rights to
    • In future builds, you’ll be asked to create a user account when installing Bash. You’ll then be able to use sudo to elevate your rights within the Linux filesystem/environment

    Share Your Feedback

    We can’t wait to hear your feedback – please be sure to share your thoughts via the channels below:

    In this article, we will see how to install Windows Subsystem for Linux on Windows 11.

    The Windows subsystem lets developers run a GNU/Linux environment including most command-line tools, utilities and applications directly on Windows.

    We can do following activities with Windows Subsystem for Linux on Windows 11:

    • Run common command-line tools such as sed, awk, grep or other binaries.
    • Run bash shell scripts and GNU/Linux command-line applications like vim,emacs,tmux, nano and languages NodeJS, Javascript, Python Ruby,C/C++,Go,Rust.
    • Install additional software using our own GNU/Linux distribution manager.
    • Invoke Windows applications using a Unix-like command line shell.

    Invoke GNU/Linux applications on Windows.

    Install Windows Subsystem for Linux(WSL) on Windows 11

    WSL installation requires to restart Windows 11 machine. So, we must have permissions to restart the Windows 11 machine.

    1. Open command prompt or PowerShell as administrator.

    2. Run the following command on either command prompt or PowerShell.
    Following command will enable the required optional components, downloads the latest Linux kernel, and sets WSL as our default and downloads Ubuntu.

    How to update the windows bash shell to ubuntu 16.04

    3. Reboot the Windows 11 machine to effect the changes.

    4. After reboot, open PowerShell as administrator and run the following command to check the list of Linux distributions and version of WSL.

    5. To find the list of available WSL distros run the following command.

    How to update the windows bash shell to ubuntu 16.04

    6. To install the WSL with a specific distro on Windows 11 run the following command.

    Here Distro-Name can be any of the following
    Ubuntu
    Debian
    kali-linux
    openSUSE-42
    SLES-12
    Ubuntu-16.04
    Ubuntu-18.04
    Ubuntu-20.04

    After install, we have to restart Windows 11 machine.

    Update WSL kernel on Windows 11

    To update the WSL kernel to the latest version. we have to run following command.

    So in this article, we have seen how to install WSL2(Window subsystem for Linux) on Windows 11 step by step.

    New users and students looking for ways to learn how to use and manage Linux systems, the easiest place to start might be on Ubuntu Linux OS. Ubuntu is an open source Linux operating systems that runs on desktops, laptops, server and other devices.

    The same way you use your mouse and keyboard to make basic user accounts changes or perform others simple tasks on Microsoft Windows OS, Ubuntu also makes it easy for you. Just like how easy it is to work on Windows computers, Ubuntu desktop is that easy as well and great for beginners.

    However, when you’re learning to use and understand Ubuntu Linux, you’ll also want to learn the comnands behind the graphics and mouse-clicking. and how to use them. This tutorial is going to show you how..

    This post shows new users and students what the usermod command is used for and how to use it.

    When you’re ready to learn how to use the usermod commands, follow the guide below:

    About usermod command:

    The usermod command is used by system adminstrators to change users’ account settings similar to the passwd command. Like using your mouse and keyboard to change account settings in the GUI. the usermod is the way to do it on the command line.

    Syntax:

    The syntax is the rule and format of how the usermod command can be used. the systax’s options can be reordered. but straight format must be followed.

    Below is an example syntax of how to use the usermod comamnd.

    usermod [OPTION]. LOGIN.

    Options:

    The command line options are switches or flags that determined how the commands are executed or controlled. they modify the behavior of the command. they are separated by spaces and followed after the commands options.

    Below are some options of the usermod command:

    LOGIN. Replace LOGIN .. with the name of the account you want to change its settings. If the account doesn’t already exist, the command will fail and not execute..
    -c, –comment COMMENT
    Use the -c or –command COMMENT option to set or change the user’s account comment field.
    -d, –home HOME_DIR Use the -d or –home HOME_DIR option to change or set a new home directory for the user account.
    -f, –inactive INACTIVE Use the -f or –inactive INACTIVE option to set password inactive after expiration to INACTIVE
    -g, –gid GROUP Use the -g or –gid GROUP option to force use GROUP as new primary group
    -G, –groups GROUPS Use the -G or –groups GROUP option to set new list of supplementary GROUPS
    -a, –append Use the -a or –append option to append the user to the supplemental GROUPS
    -l, –login NEW_LOGIN Use the -l or –login NEW_LOGIN option to create new value of the login name
    -h, –help Display help message and exit.
    -L, –lock Use the -L or –lock option to lock the user account

    Examples:

    Below are some examples of how to run and use the usermod on Ubuntu Linux.

    If you want to add an account name John to the sudo group, run the commands below.

    usermod -a -G sudo john

    If you wish to change John’s account Full Name or comment field, run the usermod command and specify John’s account name. in this case, it’s called john..

    usermod -c “John Doe” john

    If you’re not logged in as a root account, you may have to use the sudo command it it.

    sudo usermod -c “John Doe” john

    To change John’s account login name to paul, run the commands below.

    sudo usermod -l paul john

    To unlock John’s account, run the command below

    sudo usermod -U john

    To lock John’s account, run the commands below.

    sudo usermod -L john

    To change John’s home directory, run the commands below

    sudo usermod -d /home/newHomeDir -m johnNewHome

    When you run usermod with the –help option, you’ll see the help text below:

    Hope you like it and please come back soon for more Ubuntu Linux command!