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

Uninstall routine doesn't work sed: invalid option -- '1' #397

Open
reneas opened this issue Feb 27, 2024 · 3 comments
Open

Uninstall routine doesn't work sed: invalid option -- '1' #397

reneas opened this issue Feb 27, 2024 · 3 comments

Comments

@reneas
Copy link

reneas commented Feb 27, 2024

Description of the bug
When running the uninstall.sh script in /home/USERNAME/.fusion360/bin it exits with a sed error.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to /home/reneas/.fusion360/bin
  2. Execute uninstall.sh
  3. Click through the uninstall routine
  4. Finish with "Ok"
  5. Check terminal output
  6. See error

Expected behavior

  1. Navigate to /home/reneas/.fusion360/bin
  2. Execute uninstall.sh
  3. Click through the uninstall routine
  4. Have programm uninstalled

Screenshots
image

image

Desktop (please complete the following information):

  • Version number of Autodesk Fusion 360: 2.0.18460 x86_64
  • Graphics card model + Graphics card driver:
sudo lshw -c video
  *-display                 
       description: VGA compatible controller
       product: CometLake-U GT2 [UHD Graphics]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 02
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 resolution=1920,1080
       resources: irq:136 memory:80000000-80ffffff memory:60000000-7fffffff ioport:3000(size=64) memory:c0000-dffff
  • Operating system: Kubuntu 22.04
  • Desktop environment: KDE
  • OpenGL-Mode

Additional context
the terminal reads:

./uninstall.sh 
Testing presence of yad ...
Found: /usr/bin/yad
EN

TRUE
sed: invalid option -- '1'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
      --debug
                 annotate program execution
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -E, -r, --regexp-extended
                 use extended regular expressions in the script
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
      --sandbox
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
sed: invalid option -- '1'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
      --debug
                 annotate program execution
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -E, -r, --regexp-extended
                 use extended regular expressions in the script
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
      --sandbox
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
sed: invalid option -- '1'
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
      --debug
                 annotate program execution
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -E, -r, --regexp-extended
                 use extended regular expressions in the script
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
      --sandbox
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
rmdir: failed to remove 'customOpenGL/home/reneas/Programme/Fusion': No such file or directory
rmdir: failed to remove '/home/reneas/.local/share/applications/wine/Programs/Autodesk/Fusion360/': Directory not empty
There is at least one installed Wineprefix on your system!
There is at least one installed Wineprefix on your system!

@PedroMTSilva
Copy link

PedroMTSilva commented Mar 11, 2024

Hello! Today i was having this exact problem and what worked for me was completely removing the whinehq package from my system and cleaning. So would be the following (the brackets are depending on what branch you have installed):

sudo apt-get remove --purge whinehq-[stable/devel/staging]
sudo apt autoremove

EDIT
You should also remove the /.fusion360/ directory from your system, which should be in your home directory, just to remove the previous wine prefix that was configured for fusion.
EDIT END

Then reboot.

After that, just installed the stable wine branch again and ran the script and it just worked (idk about the other branches). But now i am still having some trouble logging in, so later i'll be reffering to #396 (comment) to keep going, since this sd1337's solution seems to work.

Just to add up, the app was launching fine, even after rebooting after the instalation process, and this error probably occured to me when i decided to just delete the .fusion360 directory on home by hand and try to use the bottle approach because of the login issues. So it probably messed up some configs with wine, since i remember installing the stable branch first and just a few minutes ago i noticed my branch was actually the staging branch.

@reneas
Copy link
Author

reneas commented Mar 17, 2024

Unfortunately this didn't solve the issue for me. Initially I wanted to use the uninstall routine so that there are no leftover files in my system but now i think I might just delete the ~/.fusion360/ and my installation folder manually...
Are there any other places, where this programm installed anything or created folders&files?

@PedroMTSilva
Copy link

PedroMTSilva commented Mar 17, 2024

Yes, besides purging wine, you should also completely remove the /.fusion360/ directory to remove it's wine prefix config. After that follow the link to the comment in my previous response (#396). I'll be up a bit more if you need more help, i already managed to get it working.

I believe the only place were it installs things besides the /.fusion360/ directory is in the wine directories, but then again, if you have the possibility to completely remove wine you should be good to go.

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