MSYS2-packages: [BUG] Cannot update packages

Describe the bug

MSYS2 base package no longer updates:

MSYS ~
$ pacman -Syu --noconfirm
:: Synchronizing package databases...
 mingw32                  467.1 KiB   439K/s 00:01 [#####################] 100%
 mingw32.sig              119.0   B  0.00B/s 00:00 [#####################] 100%
 mingw64                  469.7 KiB  2.40M/s 00:00 [#####################] 100%
 mingw64.sig              119.0   B  0.00B/s 00:00 [#####################] 100%
 msys                     187.6 KiB  11.5M/s 00:00 [#####################] 100%
 msys.sig                 119.0   B  0.00B/s 00:00 [#####################] 100%
:: Starting core system upgrade...
warning: terminate other MSYS2 programs before proceeding
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing filesystem (2020.02-3) breaks dependency 'msys2-base' required by dash

Steps to Reproduce the Problem

  1. Run msys2.exe
  2. Execute pacman -Syu --noconfirm
  3. Catch the error

Expected behavior: the core system upgrade should complete without errors.

Additional Context: Operating System, Screenshots

  • OS: Windows 10 Pro version 2004 64-bit
  • MSYS2: msys2-base-x86_64-20190524.tar.xz and msys2-base-x86_64-20200602.tar.xz

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 23 (2 by maintainers)

Commits related to this issue

Most upvoted comments

pacman -Sydd filesystem; pacman -Su works also.

@RobertBColton, you could possibly use the same workaround implemented in vcpkg – remove it before making the core system upgrade (if you don’t need dash of course), e.g.:

%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Rc dash
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syu
...

I’d like to re-post here that pacman -S dash before pacman -Syu is a simpler (and safer) workaround instead of force upgrade filesystem, as https://github.com/msys2/MSYS2-packages/pull/2022#issuecomment-648917345.

Same problem on my side with a clean install after downloading msys2-base-x86_64-20200602.tar.xz from http://repo.msys2.org/distrib/x86_64/

Pacman -Syuu gives the same filesystem breaks dependency error.

I add previously installed another clean install in the morning, limited to just a couple of “Pacman -Syuu”, without downloading any other packages, note even msys2 base-devel, and this one could redo “Pacman -Syuu” and install the filesystem package after the repo update.

See #2022

Warning: Try this if you don’t care about your MSYS2 installation to be nuked 😃

  1. Download the .tar.xz file from here https://packages.msys2.org/package/filesystem.
  2. Assume that file is downloaded in C:\MyFiles folder. Run this command pacman -Udd /c/MyFiles/filesystem-2020.02-3-x86_64.pkg.tar.xz.
  3. Kill every msys2 shell/program.
  4. Run pacman -Syu again.