# dbt deps fails when trying Installing projects as dbt packages

**URL:** <https://discourse.getdbt.com/t/dbt-deps-fails-when-trying-installing-projects-as-dbt-packages/20379>\
**Category:** Help\
**Tags:** dbt-cloud\
**Created:** [October 28, 2025, 9:52am UTC](https://discourse.getdbt.com/t/dbt-deps-fails-when-trying-installing-projects-as-dbt-packages/20379 "2025-10-28T09:52:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitg](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/amitg/32/5869_2.png) [@amitg](https://discourse.getdbt.com/u/amitg)\
**Post date:** [October 28, 2025, 9:52am UTC](https://discourse.getdbt.com/t/dbt-deps-fails-when-trying-installing-projects-as-dbt-packages/20379/1 "2025-10-28T09:52:59Z")

</div>

## The problem I’m having

We added the parent projects to the **packages.yml** file to include them as dependencies.  
However, when running **`dbt deps`** , we encountered an error during the installation process.

## The context of why I’m trying to do this

in the packeges.yml

- git:“https://{{ env\_var(‘dbt\_BITBUCKET\_USERNAME’) }}:{{ env\_var(‘dbt\_BITBUCKET\_PASSWORD’) }}@bitbucket.orgbitbucket.org/…org\_name/…project\_name.git”

revision: “master”

## What I’ve already tried

we tried to add to this url Environment Variables: dbt\_BITBUCKET\_USERNAME and dbt\_BITBUCKET\_PASSWORD but geting : remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.

## Some example code or error messages

```auto
 remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.
 

```
