在 Ubuntu 18.04 上使用 composer 将 Drupal 9.0.3 更新到 9.0.6 的问题
Updating issue for Drupal 9.0.3 to 9.0.6 using composer on Ubuntu 18.04
你好我正在尝试将 drupal 安装从 9.0.3 更新到 9.0.6 它在作曲家更新期间抛出异常它安装在 Ubuntu 18.04
我 运行
composer update drupal/core-recommended --with-dependencies
我得到以下输出
PHP Warning: Module 'apcu' already loaded in Unknown on line 0
Cannot create cache directory /home/user/.composer/cache/repo/https---packages.drupal.org-8/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/user/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/user/.composer/cache/files/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 3 updates, 0 removals
- Updating symfony/http-kernel (v4.4.9 => v4.4.13): Update failed (Could not delete /home/user/articles/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php: Module 'apcu' already loaded)
Would you like to try reinstalling the package instead [yes]? yes
- Removing symfony/http-kernel (v4.4.9)
Does anyone know how to fix this?
[RuntimeException]
Could not delete /home/user/articles/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php: Module 'apcu' already loaded
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...```
I've tried
`composer update drupal/core-recommended "symfony/*" --with-dependencies` to update the symfony packages as well which didn't work
I tried posting this on the Drupal support forums but they flag any new post as spam then delete it, good technique to keep the issues down :)
Thx for any help
出于某种原因,我的作曲家命令需要 运行 作为 root 用户
它抱怨说我不应该 运行 作为 root 但只有当我这样做时它才能正常工作
我现在已经设法从 9.0.3 更新到 Drupal 9.0.7 运行使用标准命令
sudo composer update drupal/core-recommended --with-dependencies
PHP Warning: Module 'apcu' already loaded in Unknown on line 0
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
- Updating drupal/core (9.0.3 => 9.0.7): Downloading (100%)
- Updating drupal/core-recommended (9.0.3 => 9.0.7)
Writing lock file
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
28 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning vendor directory.
你好我正在尝试将 drupal 安装从 9.0.3 更新到 9.0.6 它在作曲家更新期间抛出异常它安装在 Ubuntu 18.04
我 运行
composer update drupal/core-recommended --with-dependencies
我得到以下输出
PHP Warning: Module 'apcu' already loaded in Unknown on line 0
Cannot create cache directory /home/user/.composer/cache/repo/https---packages.drupal.org-8/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/user/.composer/cache/repo/https---repo.packagist.org/, or directory is not writable. Proceeding without cache
Cannot create cache directory /home/user/.composer/cache/files/, or directory is not writable. Proceeding without cache
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 3 updates, 0 removals
- Updating symfony/http-kernel (v4.4.9 => v4.4.13): Update failed (Could not delete /home/user/articles/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php: Module 'apcu' already loaded)
Would you like to try reinstalling the package instead [yes]? yes
- Removing symfony/http-kernel (v4.4.9)
Does anyone know how to fix this?
[RuntimeException]
Could not delete /home/user/articles/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php: Module 'apcu' already loaded
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [--with-dependencies] [--with-all-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [-i|--interactive] [--root-reqs] [--] [<packages>]...```
I've tried
`composer update drupal/core-recommended "symfony/*" --with-dependencies` to update the symfony packages as well which didn't work
I tried posting this on the Drupal support forums but they flag any new post as spam then delete it, good technique to keep the issues down :)
Thx for any help
出于某种原因,我的作曲家命令需要 运行 作为 root 用户 它抱怨说我不应该 运行 作为 root 但只有当我这样做时它才能正常工作
我现在已经设法从 9.0.3 更新到 Drupal 9.0.7 运行使用标准命令
sudo composer update drupal/core-recommended --with-dependencies
PHP Warning: Module 'apcu' already loaded in Unknown on line 0
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
- Updating drupal/core (9.0.3 => 9.0.7): Downloading (100%)
- Updating drupal/core-recommended (9.0.3 => 9.0.7)
Writing lock file
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
28 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning vendor directory.