Question: I'm having some troubles with installing extensions with magento connect. When I start installing the extension the outline terminal writes something like this:

> 
> Checking dependencies of packages Installing package community/OrganicInternet\_SimpleConfigurableProducts 0.7.4
> 
> 
> CONNECT ERROR: Failed to open file
>  /var/www/magento/downloader/.cache/community/OrganicInternet\_SimpleConfigurableProducts-0.7.4/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Product/Type/Configurabl
> 
> 
> 

I checked the path and I found the requested file. As you can see the permissions should be fine ;-)

> 
> drwxrwxrwx 2 www-data www-data 4.0K Nov 3 11:10 Configurabl
> 
> 
> 

I have no idea what to do. I'm using PHP 5.5.4-1 - so that should be fine.

Do you have any idea what to do?

Answer: 
Go

> 
> downloader\lib\Mage\Archive\Tar.php
> 
> 
> 

find method 

```
_extractFileHeader().

```

Then find the near code line no 563:

```
if (!($header['name'] == '././@LongLink' && $header['type'] == 'L')) {
  $header['name'] = trim($header['name']);
  return $header;
}

```

And replace it with:

```
if (!(trim($header['name']) == '././@LongLink' && $header['type'] == 'L')) {
 $header['name'] = trim($header['name']);
 return $header;
}

```

![enter image description here](https://i.stack.imgur.com/GnDr0.png)

See on dev. comment: [enter link description here](http://www.linkedin.com/groups/Extension-Package-installation-error-2083430.S.5929167301688442883?trk=groups_items_see_more-0-b-ttl)
Check the owner and permissions of `/var/www/magento/downloader/`. If you have SSH/command line access then you can install your extension like from the root of your Magento installation like this:

```
./mage install http://connect20.magentocommerce.com/community OrganicInternet_SimpleConfigurableProducts

```

If you get any permission errors running `mage` then change permissions to 755 with `chmod 755 mage` (or `sudo chmod 755 mage`).