Skip to content

Composer update fails on ubuntu 22.04 #166

@dhaliwalsinghmanpreet

Description

@dhaliwalsinghmanpreet

Tries to do composer update and got the follwing error

Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Only one of these can be installed: symfony/yaml[2.0.4, ..., v2.8.52, v3.0.0, ..., v3.4.47, v4.0.0, ..., v4.4.45, v5.0.0, ..., v5.4.43, v6.0.0, ..., v6.4.11, v7.0.0, ..., v7.1.4], twig/twig[2.0.4, 2.0.5, 2.0.6], symfony/symfony[v3.1.0, ..., v3.1.10]. [twig/twig, symfony/symfony] replace symfony/yaml and thus cannot coexist with it.
- tss/automailer-bundle dev-master requires symfony/swiftmailer-bundle ^2.8|^3 -> satisfiable by twig/twig[2.0.6, ..., v2.16.0, v3.0.1, ..., v3.13.0].
- Root composer.json requires tss/automailer-bundle dev-master -> satisfiable by tss/automailer-bundle[dev-master].
- Root composer.json requires symfony/symfony 3.1.* -> satisfiable by symfony/symfony[v3.1.0, ..., v3.1.10].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Steps

  1. try to do docker-compose up --build

will get

ERROR [app 6/29] RUN apt-get install -y --fix-missing php7.1-bcmath php7.1-bz2 php7.1-cli php7.1-common php7 4.0s

This is solver by making the following changes.

      A. Changes made in docker file
      
                      1. FROM ubuntu:22.04
                       2.  insted of 
                                  RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -   
                           changed to 
                                  RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
      
      
      B. Go to config/docker/app/Dockerfile directory and run 
      ```
      docker build --no-cache .
      ```
  1. Now back to project main directory and run
    docker-compose up --build

you will get another error

campr_app | Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. It is recommended that you run composer update or composer update <package name>.
campr_app | Package operations: 161 installs, 0 updates, 0 removals
campr_app |
campr_app |
campr_app | [RuntimeException]
campr_app | /app/backend/vendor does not exist and could not be created.

  1. To fix this error I tried composer update and got the above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions