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

upgrade Script has errors #2

Open
RecursiveProgrammer opened this issue Mar 8, 2021 · 1 comment
Open

upgrade Script has errors #2

RecursiveProgrammer opened this issue Mar 8, 2021 · 1 comment
Assignees
Labels
Finished Ubuntu Testing Finished Ubuntu Testing

Comments

@RecursiveProgrammer
Copy link
Owner

Main branch released an upgrade. Tried to run the Upgrade script on the server. Errors displayed.

cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-poli
cy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Error log:

sudo ./Ubuntu-Upgrade.sh 2>&1 | tee Ubuntu-Upgrade.sh.log

Ubuntu-Upgrade.sh.log

@RecursiveProgrammer
Copy link
Owner Author

A few issues: There are special characters in the file that are interfering with the update:

# https://unix.stackexchange.com/questions/27054/bin-bash-no-such-file-or-directory
# correct: 0000000   #   !   /   b   i   n   /   b   a   s   h  \n
head -1 Ubuntu-Upgrade.sh | od -c
000000 357 273 277   #   !   /   b   i   n   /   b   a   s   h  \n
0000017

The following needed to be ran:

sed -i '1s/^.*#/#/;s/\r$//' Ubuntu-Upgrade.sh

The result:

head -1 Ubuntu-Upgrade.sh | od -c
0000000   #   !   /   b   i   n   /   b   a   s   h  \n
0000014

Second issue will be dealing with parsing of the exec path.

RecursiveProgrammer added a commit that referenced this issue Mar 8, 2021
@RecursiveProgrammer RecursiveProgrammer added the pending manjaro test pending manjaro testing label Mar 12, 2021
@RecursiveProgrammer RecursiveProgrammer self-assigned this Mar 14, 2021
@RecursiveProgrammer RecursiveProgrammer added pending ubuntu server test Pending server ubuntu testing and removed pending manjaro test pending manjaro testing labels Mar 14, 2021
@RecursiveProgrammer RecursiveProgrammer added Finished Ubuntu Testing Finished Ubuntu Testing and removed pending ubuntu server test Pending server ubuntu testing labels Apr 7, 2021
bitbound pushed a commit to immense/Remotely that referenced this issue Jul 26, 2021
bitbound pushed a commit to immense/Remotely that referenced this issue Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Finished Ubuntu Testing Finished Ubuntu Testing
Projects
None yet
Development

No branches or pull requests

1 participant