Skip to content

Commit

Permalink
-y parameter in aptt command should go to end, otherwise script would…
Browse files Browse the repository at this point in the history
… not work (Linux Mint 19)
  • Loading branch information
cromat committed Jan 23, 2019
1 parent fe5ca8f commit 9deb4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ePSXe64Ubuntu.sh
Expand Up @@ -28,15 +28,15 @@ tput setaf 2; echo "Script started."; tput sgr0
# Installs required packages per OS
if [ "$(. /etc/os-release ; echo $ID)" == "ubuntu" ] && [ "$(echo $(. /etc/os-release ; echo $VERSION_ID)|cut -c -2)" -ge 18 ]
then
sudo apt -y install libncurses5 libsdl-ttf2.0-0 libssl1.0.0 ecm unzip
sudo apt install libncurses5 libsdl-ttf2.0-0 libssl1.0.0 ecm unzip -y
wget http://archive.ubuntu.com/ubuntu/pool/main/c/curl3/libcurl3_7.58.0-2ubuntu2_amd64.deb -O /tmp/libcurl3_7.58.0-2ubuntu2_amd64.deb
sudo mkdir /tmp/libcurl3
sudo dpkg-deb -x /tmp/libcurl3_7.58.0-2ubuntu2_amd64.deb /tmp/libcurl3
sudo cp -vn /tmp/libcurl3/usr/lib/x86_64-linux-gnu/libcurl.so.4.5.0 /usr/lib/x86_64-linux-gnu/libcurl.so.3
sudo rm -rf /tmp/libcurl3
rm -rf /tmp/libcurl3_7.58.0-2ubuntu2_amd64.deb
else
sudo apt -y install libcurl3 libsdl-ttf2.0-0 libssl1.0.0 ecm unzip
sudo apt install libcurl3 libsdl-ttf2.0-0 libssl1.0.0 ecm unzip -y
fi

# Back-up function
Expand Down

12 comments on commit 9deb4bc

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this specific to Mint, please?

@cromat
Copy link
Owner Author

@cromat cromat commented on 9deb4bc Jan 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is not specific only to mint. I would say for all Ubuntu derivatives.

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Thing is that it works on both Ubuntu 16.04 and 18.04.

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to be sure, is my script breaking your set-up of Linux Mint 19? (i.e. ePSXe not installing)
If positive, can you please, supply screenshot/s with error/s?
Thank you.

@cromat
Copy link
Owner Author

@cromat cromat commented on 9deb4bc Jan 31, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, epsxe is not installed after that, and I get apt help (usage) output. I will make a screenshot when I come home.

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please.

@cromat
Copy link
Owner Author

@cromat cromat commented on 9deb4bc Feb 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the output:

Welcome to ePSXe64Ubuntu.sh script, 11.
When ePSXe GUI appears on screen:
  Right click on icon in Dash/Dock/Panel
  Add to Favorites/Lock
  CLOSE ePSXe GUI to continue with the script.
Script started.
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Another question: where you prompted to insert SUDO password?
And, can you paste the script ePSXe64Ubuntu.sh from your Home directory, please?

I am asking these questions for a relatively simple request because I believe that there is another error which we are not seeing and, thus, want to investigate some more.

Screenshot for reference.
screenshot from 2019-02-01 19-56-43

@cromat
Copy link
Owner Author

@cromat cromat commented on 9deb4bc Feb 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not prompted for sudo password.

Here is whole output of starting the script from home directory:

mat@mat-Aspire-5553G:~$ wget -O ePSXe64Ubuntu.sh https://raw.githubusercontent.com/brandleesee/ePSXe64Ubuntu/master/ePSXe64Ubuntu.sh && bash ePSXe64Ubuntu.sh
--2019-02-01 20:42:59--  https://raw.githubusercontent.com/brandleesee/ePSXe64Ubuntu/master/ePSXe64Ubuntu.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.12.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.12.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5535 (5,4K) [text/plain]
Saving to: ‘ePSXe64Ubuntu.sh’

ePSXe64Ubuntu.sh                           100%[=====================================================================================>]   5,41K  --.-KB/s    in 0,1s    

2019-02-01 20:43:00 (52,8 KB/s) - ‘ePSXe64Ubuntu.sh’ saved [5535/5535]

Welcome to ePSXe64Ubuntu.sh script, 11.
When ePSXe GUI appears on screen:
  Right click on icon in Dash/Dock/Panel
  Add to Favorites/Lock
  CLOSE ePSXe GUI to continue with the script.
Script started.
apt
Usage: apt command [options]
       apt help command [options]

Commands:
  add-repository   - Add entries to apt sources.list
  autoclean        - Erase old downloaded archive files
  autoremove       - Remove automatically all unused packages
  build            - Build binary or source packages from sources
  build-dep        - Configure build-dependencies for source packages
  changelog        - View a package's changelog
  check            - Verify that there are no broken dependencies
  clean            - Erase downloaded archive files
  contains         - List packages containing a file
  content          - List files contained in a package
  deb              - Install a .deb package
  depends          - Show raw dependency information for a package
  dist-upgrade     - Upgrade the system by removing/installing/upgrading packages
  download         - Download the .deb file for a package
  edit-sources     - Edit /etc/apt/sources.list with your preferred text editor
  dselect-upgrade  - Follow dselect selections
  full-upgrade     - Same as 'dist-upgrade'
  held             - List all held packages
  help             - Show help for a command
  hold             - Hold a package
  install          - Install/upgrade packages
  list             - List packages based on package names
  policy           - Show policy settings
  purge            - Remove packages and their configuration files
  recommends       - List missing recommended packages for a particular package
  rdepends         - Show reverse dependency information for a package
  reinstall        - Download and (possibly) reinstall a currently installed package
  remove           - Remove packages
  search           - Search for a package by name and/or expression
  show             - Display detailed information about a package
  showhold         - Same as 'held'
  source           - Download source archives
  sources          - Same as 'edit-sources'
  unhold           - Unhold a package
  update           - Download lists of new/upgradable packages
  upgrade          - Perform a safe upgrade
  version          - Show the installed version of a package

replace /tmp/docs/epsxe_linux_sp.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
 * ePSXe change dir to /home/mat/.epsxe/
 * Running ePSXe emulator version 2.0.5. 
 * Going out from gui. (exit)
Shaders Menu
1) Download
2) Restore from backup
3) Do nothing
Choose from 1 to 3 above. 3
This choice has left the shaders folder empty.
Script finished.
mat@mat-Aspire-5553G:~$ 

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit (brandleesee@68a031d) should have fixed the issue.

Can you install again?

wget -O ePSXe64Ubuntu.sh https://raw.githubusercontent.com/brandleesee/ePSXe64Ubuntu/master/ePSXe64Ubuntu.sh && bash ePSXe64Ubuntu.sh

...and report back with results.

Thanks.

@cromat
Copy link
Owner Author

@cromat cromat commented on 9deb4bc Feb 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine now. Thanks :)

@brandleesee
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're welcome.

Please sign in to comment.