Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Whenever I execute the command

build/tools/device/mkvendor.sh samsung_aegis2vzw /your/path/to/the/boot.img 

I get this as the output

build/tools/device/mkvendor.sh: line 83: /sedcommand: Permission denied
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory
sed: -e expression #1, char 15: unknown option to `s'
sed: couldn't open file /sedcommand: No such file or directory

How to fix this error?

share|improve this question
    
Run the command with sudo ? –  bodhi.zazen Jul 11 at 16:17
    
In simple words, you need to use sudo and check if /sedcommand file exists. –  Registered User Jul 11 at 16:17
    
If you get the same error with sudo, then you need to file a bug report. –  bodhi.zazen Jul 11 at 16:19

2 Answers 2

It seems a script error. Probably you want save sedcommand file at line 83 of mkvendor.sh. In this file you probably want store sed command and use later on text file.

For examples if I try:

      echo "s/token/replace/" > $MYPATH/sedcommand
      sed -f $MYPATH/sedcommand inputFile.txt

if $MYPATH is unset I get:

      /sedcommand: Permission denied
      sed: couldn't open file /sedcommand: No such file or directory

because I have not permission to write in / directory.

share|improve this answer
    
Line 83 is: echo $SEDCMD > $TMPDIR/sedcommand how would I edit this? –  user304622 Jul 12 at 5:46
    
Check if $TMPDIR is defined in your script, and if it isn't, write before line 83 TMPDIR=/tmp for examples or where you want. The script must have the right permission to write the path you choose. –  Letizia Jul 12 at 10:57

You forgot to enter the vendor name, the correct command should be

build/tools/device/mkvendor.sh samsung aegis2vzw /your/path/to/the/boot.img

the script takes three arguments: vendor name path. Regards

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.