LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-24-2019, 08:10 PM   #1
RobbTom
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Rep: Reputation: Disabled
Question add-apt-repository: Syntax error: redirection unexpected


uname -a output:
Linux scallion 4.9.0-kali4-amd64 #1 SMP Debian 4.9.30-2kali1 (2017-06-22) x86_64 GNU/Linux

Bash version output:
GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)

Greetings, I've been trying to add a ppa repository so that I can install WoeUSB. I keep running into this error:

This is the command:
sudo add-apt-repository ppa:nilarimogard/webupd8

This is the error message:
/usr/sbin/add-apt-repository: 1: /usr/sbin/add-apt-repository: Syntax error: redirection unexpected

This has been occurring for any and all ppa repos that I've tried to add. I believe I have all the dependencies installed. Can't figure out what is wrong with the syntax of the command. Any help appreciated. Thanks.
 
Old 02-24-2019, 08:21 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 7,469
Blog Entries: 2

Rep: Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623
PPAs are for the Ubuntu family. Kali is based directly on Debian so doesn't support them. There *are* workarounds available which allow some PPAs to be installed - you should search on the web for these and for the exact error message you received. If this doesn't work for WoeUSB, then just download and install a deb package version of WoeUSB. Searching the web for Kali WoeUSB will give you lots of pointers.
 
Old 02-24-2019, 08:22 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 14,709
Blog Entries: 24

Rep: Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105Reputation: 4105
Did you see this thread at the Kali forums?
 
Old 02-25-2019, 03:20 PM   #4
RobbTom
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yes, thanks, but I've scraped all the searches and forums and tried many different possible solutions to no avail. Now my kali install won't boot into gui and mariadb-server and ruby-CMS-scanner are broken and system won't boot into gui
 
Old 02-25-2019, 03:25 PM   #5
RobbTom
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
I broke the system after I created a win10 bootable disk using Rufus from within a VMware virtual Win10 environment and subsequently tried to use the disk to boot into a windows environment. Ultimately I'm trying to fix my windows 10 install which is primary to a dual boot w/ kali
 
Old 02-25-2019, 03:45 PM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 7,469
Blog Entries: 2

Rep: Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623
I should point out that Kali is a specialised distro aimed at pen testing experts. Given the experience that you're having, I would recommend that you choose another friendlier distro to cut your Linux teeth on unless there is some abiding reason that you need to use Kali.

see https://www.linuxquestions.org/quest...ad-4175614092/

So, is the current situation that your Windows 10 install is broken on a dual-boot system? If so, I would recommend also that you hit the Windows forums to solve the issue and forget Linux for the moment. Once you've got the Windows side of things working again, come back and we'll give you some advice on how to proceed.
 
Old 02-25-2019, 06:42 PM   #7
RobbTom
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yes I'm well aware of the use of Kali Linux for penetration testing. I've been using it for a couple of years now learning the tools and testing penetration techniques for ethical hacking. Now I understand the issue about dual booting from a primarily Windows machine. My issue is this, I broke my windows install and I'm using my Linux install in order to fix my windows OS. In doing so I inadvertently broke my Linux install by using USB drive that I created from within my Linux install and attempting to boot from said disc. I've had this issue before during the time when I was going through the hell of setting up my dual boot system. I've merely forgotten what I did to fix the problem. Appreciate any help.
I believe the problem is associated with the grub in that I think the grub was destroyed buy whatever boot process that didn't take when when I tempted to use the faulty boot disk.
The the symptoms of the problem include not being able to perform an update from the terminal, yet I'm still able to Ping various IP addresses such as Google 8. 8. 8. 8
Maria DB server and Ruby CMS scanner are showing that they are not installed producing dpkg dependency problem errors.
 
Old 02-25-2019, 10:00 PM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 7,469
Blog Entries: 2

Rep: Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623
SystemRescueCD can repair a lot of bootup/Grub issues.

However, if your Grub is faulty, how are you able to boot up into Kali to use the terminal? Also, Grub shouldn't affect in any way your ability to update from the terminal etc.

Just trying to understand...
 
Old 02-26-2019, 12:06 PM   #9
RobbTom
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Good news guys I was able to fix my Linux install, the issue was something with the DNS processing. I purged all services that refers to DNS information + reset the network manager service, now full connectivity restored to my Linux install. Great. Now the issue is back to the original problem which was that my Windows 10 install is not bootable. This problem, I believe is due to issues with the Windows boot sector, or window side grub. I could be wrong, but as usual, the Enigma that is Windows is full of Black Box Mysteries that I'll now have to refer to the windows Geeks for help. I'm well aware that this is a Linux forum. I appreciate the input I receive from you guys and I hope to be able to also contribute to resolving Linux issues for less fortunate users in the future. I won't refuse any knowledgeable help in resolving this Windows issue as well. The damn thing just stays stuck after going to that automatic repair thingy.
 
Old 02-26-2019, 12:30 PM   #10
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 7,469
Blog Entries: 2

Rep: Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623
Getting there. Do note that repairing the Windows install may well entail you having to throw SystemRescueCD at it afterwards in order to able to boot into the Linux side of things, so it would be useful to create a boot media with that ISO on it at some point.
 
Old 02-26-2019, 02:08 PM   #11
RobbTom
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Sorry guys I have just given up. I no longer using the Linux system to try to fix a Windows system while cohabiting the same machine. I've since found a Windows 8 PC with a very large monitor and it's a desktop and I'm rocking and rolling now. Got the Windows media creation tool doing its thing right now.
 
  


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
Command line execution error: unexpected EOF while looking for matching `"' bash: -c: line 25: syntax error: unexpected end of file maheshreddy690 Linux - Newbie 1 12-25-2018 01:13 PM
bash script: Syntax error: redirection unexpected make Linux - General 13 02-08-2012 02:26 PM
[SOLVED] Difference between add-apt-repository and apt-add-repository Kenny_Strawn Ubuntu 3 12-22-2010 07:50 PM
why am getting error ksh: syntax error: `fi' unexpected while running script deb4you Linux - Newbie 4 09-06-2008 08:37 AM
Backup Script error "line 31: syntax error: unexpected end of file" eswanepoel General 7 12-07-2007 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration