Skip to content

Conversation

@MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Aug 26, 2025

Situation

Installing Microsoft Edge through the cypress/factory process using the script factory/installScripts/edge/default.sh causes two entries to be placed into /etc/apt/sources.list.d

  • microsoft-edge-stable.list

    The filename /etc/apt/sources.list.d/microsoft-edge-stable.list is explicitly generated by the Cypress Edge installation script factory/installScripts/edge/default.sh and the installation process causes it to be populated with:

    deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main
    
  • microsoft-edge.list

    The filename /etc/apt/sources.list.d/microsoft-edge.list and contents are generated by the postinstall script of the Debian Edge package:

    ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
    # You may comment out this entry, but any other modifications may be lost.
    deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
    

Since the non-commented contents of the two files are identical, executing apt-get update causes a warning:

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/microsoft-edge-stable.list:1 and /etc/apt/sources.list.d/microsoft-edge.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/microsoft-edge-stable.list:1 and /etc/apt/sources.list.d/microsoft-edge.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/microsoft-edge-stable.list:1 and /etc/apt/sources.list.d/microsoft-edge.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/microsoft-edge-stable.list:1 and /etc/apt/sources.list.d/microsoft-edge.list:3

Change

Modify factory/installScripts/edge/default.sh to use only the filename microsoft-edge.list. This allows the Debian Edge package to update the file instead of creating a new one in its postinstall phase and remediates the warning concerning multiple configurations.

In factory/.env make the following updates:

Environment variable Before After
FACTORY_VERSION 6.0.1 6.0.2
FACTORY_DEFAULT_NODE_VERSION 22.19.0 no change
CHROME_VERSION 139.0.7258.154-1 140.0.7339.80-1
CHROME_FOR_TESTING_VERSION 139.0.7258.154 140.0.7339.80
EDGE_VERSION 139.0.3405.125-1 140.0.3485.54-1
FIREFOX_VERSION 142.0.1 no change

Verification

cd factory
docker compose build factory --no-cache
docker compose build edge --no-cache
cd test-project
set -a && . ../.env && set +a
docker compose run --build --rm test-factory-all-included
docker run -it --rm cypress/edge
apt-get update # check no warnings
apt-get upgrade microsoft-edge-stable # if offered, confirm that microsoft-edge-stable upgrade is successful
microsoft-edge --version

Reference

@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 added bug topic: build process browser: edge Issues related to Microsoft Edge browser labels Aug 26, 2025
@MikeMcC399 MikeMcC399 self-assigned this Aug 26, 2025
@MikeMcC399 MikeMcC399 force-pushed the fix/edge-install branch 2 times, most recently from 3986462 to d357f41 Compare August 26, 2025 17:23
@MikeMcC399 MikeMcC399 marked this pull request as ready for review August 26, 2025 17:35
@MikeMcC399

This comment was marked as outdated.

@MikeMcC399 MikeMcC399 marked this pull request as draft August 28, 2025 08:08
@MikeMcC399

This comment was marked as resolved.

@MikeMcC399 MikeMcC399 marked this pull request as ready for review August 29, 2025 14:52
@MikeMcC399
Copy link
Collaborator Author

@jennifer-shehane / @AtofStryker

Please review and merge this pending PR. Thank you!

Copy link
Contributor

@AtofStryker AtofStryker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @MikeMcC399 sorry for the delay in reviewing this PR. I am running into this issue after building the edge image and bashing into the docker image

Screenshot 2025-09-08 at 9 48 30 PM

It doesn't look like there is microsoft-edge-stable or microsoft-edge installed after running the which command

@MikeMcC399
Copy link
Collaborator Author

MikeMcC399 commented Sep 9, 2025

@AtofStryker

There appears to have been a problem with the connection to the Microsoft archive at the time of your tests. This type of error also occasionally occurs in CI, however since all CI jobs are successful, there can't be any basic problem with the PR.

$ docker run -it --rm cypress/edge
root@a4650d7562f6:/# apt-get upgrade microsoft-edge-stable
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
microsoft-edge-stable is already the newest version (140.0.3485.54-1).
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

which also works:

root@a4650d7562f6:/# which microsoft-edge
microsoft-edge --version
which microsoft-edge-stable
microsoft-edge-stable --version
/usr/bin/microsoft-edge
Microsoft Edge 140.0.3485.54
/usr/bin/microsoft-edge-stable
Microsoft Edge 140.0.3485.54

@MikeMcC399
Copy link
Collaborator Author

@AtofStryker

I also now have a branch update/debian set up for the Debian 13.1 upgrade. I'll hold back on submitting a PR until this one for Edge is merged, then rebase. Also, if possible, please let me know if there is a Cypress release going ahead today / tomorrow, and in that case I'll also wait for that one to go through and then rebase on that one.

@MikeMcC399 MikeMcC399 requested review from AtofStryker and removed request for jennifer-shehane September 9, 2025 16:21
@AtofStryker
Copy link
Contributor

@MikeMcC399 we do plan on releasing today. Would you like me to merge this in prior or after the release?

@MikeMcC399
Copy link
Collaborator Author

@AtofStryker

we do plan on releasing today. Would you like me to merge this in prior or after the release?

Before the release would be better.

@AtofStryker AtofStryker merged commit 9a5584e into cypress-io:master Sep 9, 2025
49 checks passed
@MikeMcC399 MikeMcC399 deleted the fix/edge-install branch September 10, 2025 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

browser: edge Issues related to Microsoft Edge browser bug topic: build process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(apt) Cannot install packages because Microsoft Edge repo is configured twice - cypress/included 13.8.1

4 participants