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

An error occurred (2). Please try again. #10

Open
Ojigrande opened this issue Oct 21, 2021 · 22 comments
Open

An error occurred (2). Please try again. #10

Ojigrande opened this issue Oct 21, 2021 · 22 comments

Comments

@Ojigrande
Copy link

Hello.

I have tried to use your script to install Manjaro on my tablet, but I get the error:
An error occurred (2). Please try again.

@krmanik
Copy link
Owner

krmanik commented Oct 23, 2021

Hi, I have tested the script it working fine.
What is architecture of your device?

@Ojigrande
Copy link
Author

Lenovo tap P11 Pro (TB-J706F)
uname shows next info:
Linux localhost 4.14.117-perf+ #1 SMP PREEMPT Fri Apr 30 15:52:26 CST 2021 aarch64 Android

@deniscerri
Copy link

same bug on my device too
Galaxy S10 Snapdragon

@krmanik
Copy link
Owner

krmanik commented Nov 8, 2021

Without physical devices it is hard to debug the error.
I have tested it locally on all Android devices and it working.
I may find more about error after testing more devices.

@krmanik
Copy link
Owner

krmanik commented Nov 17, 2021

@deniscerri @Ojigrande
Use termux wakelock and keep screen lock
Because in background download stop so it is giving error.

@mrfoxie
Copy link
Contributor

mrfoxie commented Mar 7, 2022

@deniscerri @Ojigrande Use termux wakelock and keep screen lock Because in background download stop so it is giving error.

still it's give the same error
Screenshot_20220307-222820_Termux
it also may be due to this error

CANNOT LINK EXECUTABLE "curl": library "libssl.so.1.1" not found: needed by /data/data/com.termux/files/usr/lib/libssh2.so in namespace (default)

@krmanik
Copy link
Owner

krmanik commented Mar 10, 2022

Run the following in termux. It will solve the error.

pkg update 
pkg upgrade

@mrfoxie
Copy link
Contributor

mrfoxie commented Mar 11, 2022

Run the following in termux. It will solve the error.

pkg update 
pkg upgrade

noo use I have already done that also I reinstall the app and script but still shows that error

@mrfoxie
Copy link
Contributor

mrfoxie commented Mar 17, 2022

I think we should close this issue because I have resolved the problem by upgrading all the packages.

@shim80
Copy link

shim80 commented Mar 30, 2022

What do you meant?
I also upgraded everything using pkg upgrade && pkg update, but that doesn't change anything.
I have a Galaxy Note 9

@mrfoxie
Copy link
Contributor

mrfoxie commented Mar 30, 2022

Do the following steps it will solve your issue:

  1. uninstall the current version of termux
  2. download the app from f-droid. now install and run it
  3. run the following command pkg update && pkg upgrade -y && exit 0
  4. now relaunch the app and run pkg install curl wget git -y
  5. after installing those packages clone the repository
wget https://raw.githubusercontent.com/krmanik/Manjaro-Linux-on-Android/master/manjaro.sh
chmod +x manjaro.sh
./manjaro.sh
  1. now select install and then point it to the directory you want to install
  2. if its installation starts then good but if you're prompt with the same error again which is An error occurred (2). Please try again. then cancel the installing and exit termux
  3. now force stop and clean cache and relaunch
  4. after relaunching run those commands again to fix broken packages
pkg update --fix-missing
pkg upgrade -y
pkg full-upgrade -y
  1. now relaunch the manjaro script ./manjaro.sh
  2. this will solve your error of installing manjaro on termux using the script.

hope it will work

@shim80
Copy link

shim80 commented Apr 21, 2022

I did everything, still doesn't work.

@mrfoxie
Copy link
Contributor

mrfoxie commented Apr 22, 2022

I did everything, still doesn't work.

It should work on all the device, I don't know why it's not working on your device. Just paste the following code and paste that log here

termux-info > log.md

@deniscerri
Copy link

What fixed it for me, was removing termux completely and updating the packages before trying to install it. Also make sure you are using the fdroid one, not the play store version

@mrfoxie
Copy link
Contributor

mrfoxie commented Apr 24, 2022

I did everything, still doesn't work.

give me some time I will make a video on it so that you can see that steps for installing manjaro

@mrfoxie
Copy link
Contributor

mrfoxie commented Apr 26, 2022

@krmanik I think this may be a bug because when I'm using my cell network then its works perfectly but as soon as I shift my network to any Wi-Fi connection then it give me error. So this is my theory that may be @Ojigrande or I'm using Wi-Fi then its not allowing me to download it. @Ojigrande can you tell me what kind of network your using while installing because I'm using my own cellular network to install Manjaro on my termux this will be really helpful to identify the problem.

@krmanik
Copy link
Owner

krmanik commented Apr 26, 2022

I think it may be/may be not the reason. Because I have just installed it over Wi-Fi.

The possible reason will be termux version and update of pkg.

@mrfoxie
Copy link
Contributor

mrfoxie commented Apr 26, 2022

@krmanik I agree with your point but I also got the same error while I'm trying to install it on the Wi-Fi network after following all the steps I have mentioned above. I tried changing 2-3 Wi-Fi and got the same error so it is the problem of the network in my case.

@AndreasBrostrom
Copy link

AndreasBrostrom commented May 11, 2022

Getting this error as well newly installed termux from F-droid.

Done above attempts with pkg and no effect either.

$ termux-info
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PID=15747
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.librehat.com/apt/termux-main/ stable main
# root-repo (sources.list.d/root.list)
deb https://packages.termux.org/apt/termux-root root stable
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.org/apt/termux-x11 x11 main
Updatable packages:                                                         All packages up to date
Android version:
10
Kernel build information:                                                   Linux localhost 4.4.205-perf+ #1 SMP PREEMPT Thu Oct 29 21:25:04 CST 2020 aarch64 Android
Device manufacturer:
OnePlus                                                                     Device model:                                                               ONEPLUS A5010

@AndreasBrostrom
Copy link

solved it, manually installing proot, pv and pulseaudio

pkg install -y proot pv pulseaudio

allow you to continue to install.

@elenakrittik
Copy link

I had same issue, and it resolved absolutely randomly and without any reason (i just re-ran manjaro.sh a few times). woo

@daglaroglou
Copy link

same issue 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

8 participants