Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"sed: can't read" and "Copy-Item ... does not exist" errors #47

Open
maphew opened this issue Jul 9, 2024 · 1 comment
Open

"sed: can't read" and "Copy-Item ... does not exist" errors #47

maphew opened this issue Jul 9, 2024 · 1 comment

Comments

@maphew
Copy link

maphew commented Jul 9, 2024

My first install attempt.

OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19045 N/A Build 19045

[xWSL Installer 20240425]

Enter '2' for Ubuntu 22.04 (Jammy) or '4' for Ubuntu 24.04 (Noble) [4]: 4

Enter a unique name for your distro or hit Enter for default.
Keep this name simple, no space or underscore characters [xWSL]:

Port number for xRDP traffic or hit Enter to use default [3399]:
Port number for SSHd traffic or hit Enter to use default [3322]:
Set a custom display scale or hit Enter for Windows default [1.25]:
Not recommended!  Hit X to eXclude distro from Windows Defender:

Installing xWSL Distro [xWSL] to "D:\vols\xWSL\xWSL"
This will take a few minutes, please wait...

[14:46:03] Installing Ubuntu             (~0m45s)
[14:46:51] Setup apt-fast and clone repo (~1m00s)
[14:47:01] Prerequisite components       (~1m45s)
[14:47:02] Xfce desktop environment      (~2m00s)
sed: can't read /tmp/xWSL/dist/usr/local/bin/restartwsl: No such file or directory
sed: can't read /tmp/xWSL/dist/usr/local/bin/restartwsl: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml: No such file or directory sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/panel/whiskermenu-1.rc: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/xrdp/xrdp.ini: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.bashrc: No such file or directory
sed: can't read /etc/ssh/sshd_config: No such file or directory
sed: can't read /etc/ssh/sshd_config: No such file or directory
sed: can't read /tmp/xWSL/dist/usr/local/bin/initwsl: No such file or directory
fatal: The user `xrdp' does not exist.
chmod: cannot access '/tmp/xWSL/dist/etc/wsl.conf': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/profile.d/xWSL.sh': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/usr/local/bin/restartwsl': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/usr/local/bin/initwsl': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/init.d/xrdp': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/skel/.config': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/skel/.local': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/skel/.mozilla': No such file or directory
cp: cannot stat '/tmp/xWSL/dist/*': No such file or directory
cp: cannot stat '/tmp/xWSL/dist/etc/skel/.config': No such file or directory
cp: cannot stat '/tmp/xWSL/dist/etc/skel/.local': No such file or directory
chown: invalid user: ‘xrdp:root’
update-rc.d: error: unable to read /etc/init.d/xrdp

Enter name of primary user for xWSL: matt
Enter password for matt: ********
sed: can't read /tmp/xWSL/xWSL.rdp: No such file or directory
sed: can't read /tmp/xWSL/xWSL.rdp: No such file or directory
sed: can't read /tmp/xWSL/xWSL.rdp: No such file or directory
cp: cannot stat '/tmp/xWSL/xWSL.rdp': No such file or directory
bash: line 1: gconftool-2: command not found
bash: line 1: gconftool-2: command not found

Open Windows Firewall Ports for xRDP, SSH, mDNS...
Building RDP Connection file, Console link, Init system...
Copy-Item : Cannot find path 'D:\vols\xWSL\xWSL\xWSL (matt) Desktop.rdp' because it does not exist.
At line:1 char:1
+ Copy-Item 'D:\vols\xWSL\xWSL\xWSL (matt) Desktop.rdp' ([Environment]: ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\vols\xWSL\xW...tt) Desktop.rdp:String) [Copy-Item], ItemNotFoundExceptio
   n
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Building Scheduled Task...
Get-Content : Cannot find path 'D:\vols\xWSL\xWSL\rootfs\tmp\xWSL\xWSL.xml' because it does not exist.
At line:1 char:20
+ $WAI = (whoami) ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('A ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\vols\xWSL\xW...p\xWSL\xWSL.xml:String) [Get-Content], ItemNotFoundExcept
   ion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At line:1 char:19
+ ...  (whoami) ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('AAAA',  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Cannot find path 'D:\vols\xWSL\xWSL\rootfs\tmp\xWSL\xWSL.xml' because it does not exist.
At line:1 char:20
+ $WAC = (pwd)    ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('Q ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\vols\xWSL\xW...p\xWSL\xWSL.xml:String) [Get-Content], ItemNotFoundExcept
   ion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At line:1 char:19
+ ...  (pwd)    ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('QQQQ',  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

ERROR: The system cannot find the path specified.

      Start: 2024-07-09 @ 14:27
        End: 2024-07-09 @ 14:47
   Packages: 1111

  - xRDP Server listening on port 3399 and SSHd on port 3322.

  - Links for GUI and Console sessions have been placed on your desktop.

  - (Re)launch init from the Task Scheduler or by running the following command:
    schtasks /run /tn xWSL

 xWSL Installation Complete!  GUI will start in a few seconds...

needless to say, the GUI does not start. ;-)

@maphew maphew changed the title sed: can't read" "sed: can't read" err and Copy-Item" Jul 9, 2024
@maphew maphew changed the title "sed: can't read" err and Copy-Item" "sed: can't read" and "Copy-Item ... does not exist" errors Jul 9, 2024
@ThomasEricB
Copy link

same here...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants