Cannot install dbt-labs/dbt_utils located in the packages.yml file

I am trying to install the packages I have listed in my packages.yml file.

But when I run dbt deps command nothing happens. Below is the content of my packages.yml

packages:
  - package: dbt-labs/dbt_utils
    version: 1.1.1
  - package: calogica/dbt_expectations
    version: [">=0.10.0", "<0.11.0"]

The context of why I’m trying to do this

I am currently running dbt within astro environment using Cosmos

What I’ve already tried

source /usr/local/airflow/dbt_venv/bin/activate

cd include/dbt

dbt deps

Some example code or error messages

The error I am getting on my airflow UI which I understand its due to the absent of dbt_utils package in my requirement

e[0m10:29:38  Unable to do partial parsing because saved manifest not found. Starting full parse.
e[0m10:29:40  Encountered an error:
Compilation Error in model onboarded_with_no_riders (models/marketing/onboarded_with_no_riders.sql)
  'dict object' has no attribute 'current_timestamp'

Installed versions

dbt-core==1.8.6
dbt-postgres==1.8.2
Python 3.11.9
astro cli == 1.25.0

Marking this as resolved. dbt was able to compile successfully. I also had the wrong assumption dbt_utils did not install, as it installed quietly when I ran dbt deps.

Then the error was a result of trying to call a function in the macros to get the current date which is included in my dbt model. I simply just applied the dbt_utils.current_timestamp method directly in my model and the error was resolved. I hope this helps someone.

If there are other ways to do this I would love to hear from the community. This is my first professional experience with dbt.