Errors in Ubuntu 18.04 on Windows 10

  • Thread starter Patricia.Guenot
  • Start date
P

Patricia.Guenot

Hello,


I tried to migrate from WSL Ubuntu 16.04 to Ubuntu 18.04 but it did'nt work.

Then I tried to uninstall Ubuntu 16.04 but I got error 0x80070002


I finally succedeed in installing Ubuntu 18.04 but

I couldn't choose the same username as before, the majuscule in first position caused an error

adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM} configuration variable. Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.


Now, I have errors in Ubuntu 18.04.


Example :

command sudo apt-get upgrade

Result
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfreetype6
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  ebtables
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
22 not fully installed or removed.
Need to get 0 B/79.9 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 28478 files and directories currently installed.)
Preparing to unpack .../ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb ...
invoke-rc.d: could not determine current runlevel
 * Error: insufficient privileges to access the ebtables rulesets.
invoke-rc.d: initscript ebtables, action "stop" failed.
dpkg: warning: old ebtables package pre-removal script subprocess returned error exit status 1
dpkg: trying script from the new package instead ...
invoke-rc.d: could not determine current runlevel
 * Error: insufficient privileges to access the ebtables rulesets.
invoke-rc.d: initscript ebtables, action "stop" failed.
dpkg: error processing archive /var/cache/apt/archives/ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb (--unpack):
 new ebtables package pre-removal script subprocess returned error exit status 1
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
Errors were encountered while processing:
 /var/cache/apt/archives/ebtables_2.0.10.4-3.5ubuntu2.18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


[B]I have several PC to migrate from Ubuntu 16.04 tu Ubunto 18.04.[/B]

[B]Questions :[/B]

[B]How can I get rid of these errors ?[/B]

[B]Why couldn't I choose a user name beginning with a majuscule as I did with Ubuntu 16.04 ?[/B]

[B]How can I start fresh after removing everything from Ubuntu, code and data ?[/B]

[B]How can I upgrade from Ubuntu 16.04 tu Ubuntu 18.04 and keep my user data ?[/B]

Thanks for your help.

[url="https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/errors-in-ubuntu-1804-on-windows-10/fe349f3d-3d58-4d90-9f8f-c14d7c12af8b"]Continue reading...[/url]
 
Back
Top Bottom