LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2017, 02:42 PM   #1
bux79
LQ Newbie
 
Registered: Aug 2016
Location: Washington D.C.
Distribution: Ubuntu 16.04
Posts: 7

Rep: Reputation: Disabled
Talking My Bash Script to install Skype will not successfully complete


Good afternoon,

I have created this simple script to test the installation of Skype on my Ubuntu 16.04 box. I've went through multiple steps to try to get this installed on my vm.

The wget command was connecting to the site for access yesterday, but I'm sure along the way i tweaked something in my script that was erroneous to its successful completion. It also seems to me that i cant take updates from the Canonical Repository. I tried the x64 version as well as that is my machine specs but either way its not working. Any help would be much appreciated. I will attach the screenshots.

-RS
Attached Thumbnails
Click image for larger version

Name:	script.PNG
Views:	19
Size:	189.0 KB
ID:	24760   Click image for larger version

Name:	error1.PNG
Views:	15
Size:	71.7 KB
ID:	24761   Click image for larger version

Name:	error2.PNG
Views:	14
Size:	128.9 KB
ID:	24762  
 
Old 04-13-2017, 03:24 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,263
Blog Entries: 10

Rep: Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161
Code:
sudo wget ...
WRONG!
never be root when connecting to the internet!!!
 
Old 04-13-2017, 04:31 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,505

Rep: Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113Reputation: 4113
In addition, it looks like you have problems with the network setup on your vm.
 
Old 04-13-2017, 06:38 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
apt-get update failed.
Your script should check for that.

your VMware tools are not up to date.
You should check into that.
 
Old 04-13-2017, 12:07 PM   #5
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a regularly changing third
Posts: 539

Rep: Reputation: Disabled
Why not just add the skype repo to your source list? That way you'll get updates automatically.
Skype repo.
 
Old 04-14-2017, 12:24 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,263
Blog Entries: 10

Rep: Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161Reputation: 5161
Quote:
Originally Posted by petelq View Post
Why not just add the skype repo to your source list? That way you'll get updates automatically.
Skype repo.
you linked an rpm repo. this does not apply.
also adding the repo (if one exists for *buntu) holds its own, separate risks.

i guess op just wanted to try their hand at scripting.
 
Old 04-14-2017, 02:50 AM   #7
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a regularly changing third
Posts: 539

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
you linked an rpm repo. this does not apply.
also adding the repo (if one exists for *buntu) holds its own, separate risks.

i guess op just wanted to try their hand at scripting.
Yes sorry, that's my repo. But there is a deb version and googling does explain how to add it to the source list.
 
Old 04-14-2017, 06:22 AM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by petelq View Post
Yes sorry, that's my repo. But there is a deb version and googling does explain how to add it to the source list.
If you have the .deb, then

Code:
$ dpkg -i /path/to/local/file.deb # should create a valid repo
If you want to install from your "own repo" then there's a method for that.

http://www.binarytides.com/apt-get-t...u-commandline/
http://www.tecmint.com/useful-basic-...ge-management/
https://www.cyberciti.biz/howto/ques...heat-sheet.php

Code:
!#bash_or_sh?

Last edited by Habitual; 04-14-2017 at 06:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Complete newbie - How to install Skype/browser updates, etc ChrisPountney Linux - Newbie 1 01-18-2015 12:54 PM
Skype direct Callto from bash script or from chromium? Xeratul Linux - General 0 12-01-2013 11:44 AM
printing my own message as each command in a bash script has completed successfully CoffeeKing!!! Linux - Newbie 9 01-26-2009 11:02 AM
Hi, I am a complete n00b in need of help executing her bash shell script. savoirefaire Linux - Newbie 4 03-12-2007 06:14 AM
Bash script using tab complete sadarax Programming 6 01-30-2007 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration