Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 在Ubuntu 18.04上使用composer更新Drupal 9.0.3至9.0.6的问题_Php_Linux_Composer Php_Drupal 9 - Fatal编程技术网

Php 在Ubuntu 18.04上使用composer更新Drupal 9.0.3至9.0.6的问题

Php 在Ubuntu 18.04上使用composer更新Drupal 9.0.3至9.0.6的问题,php,linux,composer-php,drupal-9,Php,Linux,Composer Php,Drupal 9,您好,我正在尝试将drupal安装从9.0.3更新到9.0.6,在composer更新其在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/.comp

您好,我正在尝试将drupal安装从9.0.3更新到9.0.6,在composer更新其在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
PHP警告:模块“apcu”已加载到第0行的未知中
无法创建缓存目录/home/user/.composer/cache/repo/https--packages.drupal.org-8/,或者目录不可写。在没有缓存的情况下继续
无法创建缓存目录/home/user/.composer/cache/repo/https--repo.packagist.org/,或者目录不可写。在没有缓存的情况下继续
无法创建缓存目录/home/user/.composer/cache/files/,或者该目录不可写。在没有缓存的情况下继续
使用包信息加载composer存储库
更新依赖项(包括需要开发人员)
包操作:0次安装,3次更新,0次删除
-更新symfony/http内核(v4.4.9=>v4.4.13):更新失败(无法删除/home/user/articles/vendor/symfony/http kernel/Profiler/FileProfilerStorage.php:模块“apcu”已加载)
是否尝试重新安装程序包[是]?对
-删除symfony/http内核(v4.4.9)
有人知道如何解决这个问题吗
[运行时异常]
无法删除/home/user/articles/vendor/symfony/http kernel/Profiler/FileProfilerStorage.php:模块“apcu”已加载
                                                                                                                                      
更新[--首选源][--首选区][--干运行][--开发][--无开发][--锁定][--无自定义安装程序][--无自动加载程序][--无脚本][--无进度][--无建议][--有依赖项][--有所有依赖项][v | vv | vvvv | verbose][o |--优化自动加载程序][--类地图权威][--apcu autoloader][--忽略平台需求][--首选稳定的][--首选最低的][i |--交互式][--根需求][--][]```
我试过了
`composer update drupal/core建议使用“symfony/*”--使用依赖项`来更新symfony包,但该包不起作用
我试着在Drupal支持论坛上发布这篇文章,但他们会将任何新文章标记为垃圾邮件,然后将其删除,这是一个很好的解决问题的技巧:)
谢谢你的帮助

由于某些原因,my composer命令需要以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.

您是否尝试删除供应商文件夹?我尝试删除供应商目录,现在显示[RuntimeException]无法删除库/codesnippet/plugin.js:模块“apcu”已加载