gpt4 book ai didi

chromium - 在 Chromium 构建 ubuntu 中获取 --nohooks --no-history chromium 时出错

转载 作者:行者123 更新时间:2023-12-05 08:04:40 30 4
gpt4 key购买 nike

我正在尝试在 ubuntu 上构建 chromium,我遵循了 chromium 官方网站上的所有说明但是之后我遇到了一些错误

fetch --nohooks --no-history chromium

因为我是新手,找不到解决这个问题的方法。我尝试多次构建它,但出现了同样的问题..

错误:

1:28:42] Still working on:
[1:28:42] src/third_party/icu
Syncing projects: 98% (55/56) src/third_party/icu
src/third_party/libavif/src (ERROR)
----------------------------------------
[0:32:54] Started.
[0:32:54]

________ running 'git init --bare /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90' in '/home/mypc/Desktop/code/chromium'

[0:32:54] Initialized empty Git repository in /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90/
[0:32:54]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git --template=/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90 /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0' in '/home/mypc/Desktop/code/chromium'

[0:32:54] Cloning into '/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0'...
[0:32:56] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:32:56] fatal: the remote end hung up unexpectedly
[0:32:57]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git --template=/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90 /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0' in '/home/mypc/Desktop/code/chromium' attempt 2 / 4

[0:32:57] Cloning into '/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0'...
[0:32:57] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:32:57] fatal: the remote end hung up unexpectedly
[0:32:58]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git --template=/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90 /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0' in '/home/mypc/Desktop/code/chromium' attempt 3 / 4

[0:32:58] Cloning into '/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0'...
[0:32:59] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:32:59] fatal: the remote end hung up unexpectedly
[0:33:01]
________ running 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git --template=/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90 /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0' in '/home/mypc/Desktop/code/chromium' attempt 4 / 4

[0:33:01] Cloning into '/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0'...
[0:33:01] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:33:01] fatal: the remote end hung up unexpectedly
Traceback (most recent call last):
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 1048, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 1388, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "/home/mypc/Desktop/code/depot_tools/gclient_utils.py", line 674, in CheckCallAndFilter
raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git --template=/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90 /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0' returned non-zero exit status 128 in /home/mypc/Desktop/code/chromium
[0:33:05] _____ Conflicting directory found in /home/mypc/Desktop/code/chromium/src/third_party/libavif/src. Moving to /home/mypc/Desktop/code/chromium/_bad_scm/src/third_party/libavif/srco15x1xp5.
----------------------------------------


Warnings:
Conflicting directory /home/mypc/Desktop/code/chromium/src/third_party/libavif/src moved to /home/mypc/Desktop/code/chromium/_bad_scm/src/third_party/libavif/srco15x1xp5.
Traceback (most recent call last):
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 548, in update
self._Clone(revision, url, options)
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 1048, in _Clone
self._Run(clone_cmd, options, cwd=self._root_dir, retry=True,
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 1388, in _Run
gclient_utils.CheckCallAndFilter(cmd, env=env, **kwargs)
File "/home/mypc/Desktop/code/depot_tools/gclient_utils.py", line 674, in CheckCallAndFilter
raise subprocess2.CalledProcessError(
subprocess2.CalledProcessError: Command 'git -c core.deltaBaseCacheLimit=2g clone --no-checkout --progress https://chromium.googlesource.com/external/github.com/AOMediaCodec/libavif.git --template=/home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_gittmp_srcyd5hsx90 /home/mypc/Desktop/code/chromium/src/third_party/libavif/_gclient_src_9qd9xci0' returned non-zero exit status 128 in /home/mypc/Desktop/code/chromium

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mypc/.vpython-root/6b08bc/lib/python3.8/shutil.py", line 791, in move
os.rename(src, real_dst)
FileNotFoundError: [Errno 2] No such file or directory: '/home/mypc/Desktop/code/chromium/src/third_party/libavif/src' -> '/home/mypc/Desktop/code/chromium/_bad_scm/src/third_party/libavif/srco15x1xp5/src'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/mypc/Desktop/code/depot_tools/metrics.py", line 291, in print_notice_and_exit
yield
File "/home/mypc/Desktop/code/depot_tools/gclient.py", line 3200, in <module>
sys.exit(main(sys.argv[1:]))
File "/home/mypc/Desktop/code/depot_tools/gclient.py", line 3186, in main
return dispatcher.execute(OptionParser(), argv)
File "/home/mypc/Desktop/code/depot_tools/subcommand.py", line 252, in execute
return command(parser, args[1:])
File "/home/mypc/Desktop/code/depot_tools/gclient.py", line 2740, in CMDsync
ret = client.RunOnDeps('update', args)
File "/home/mypc/Desktop/code/depot_tools/gclient.py", line 1779, in RunOnDeps
work_queue.flush(revision_overrides, command, args, options=self._options,
File "/home/mypc/Desktop/code/depot_tools/gclient_utils.py", line 969, in flush
reraise(e[0], e[1], e[2])
File "/home/mypc/Desktop/code/depot_tools/gclient_utils.py", line 67, in reraise
raise value
File "/home/mypc/Desktop/code/depot_tools/gclient_utils.py", line 1046, in run
self.item.run(*self.args, **self.kwargs)
File "/home/mypc/Desktop/code/depot_tools/gclient.py", line 925, in run
self._got_revision = self._used_scm.RunCommand(command, options, args,
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 132, in RunCommand
return getattr(self, command)(options, args, file_list)
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 550, in update
self._DeleteOrMove(options.force)
File "/home/mypc/Desktop/code/depot_tools/gclient_scm.py", line 207, in _DeleteOrMove
shutil.move(self.checkout_path, dest_path)
File "/home/mypc/.vpython-root/6b08bc/lib/python3.8/shutil.py", line 811, in move
copy_function(src, real_dst)
File "/home/mypc/.vpython-root/6b08bc/lib/python3.8/shutil.py", line 435, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/home/mypc/.vpython-root/6b08bc/lib/python3.8/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/mypc/Desktop/code/chromium/src/third_party/libavif/src'

Subprocess failed with return code 1.

附言。我也是 stackoverflow 的新手

最佳答案

要运行该工具(它是一个 bash 脚本),您可以尝试指定获取文件的路径(绝对或相对)。即如果你是depot_tools,你可以试试./fetch --nohooks --no-history chromium

看看有没有帮助

关于chromium - 在 Chromium 构建 ubuntu 中获取 --nohooks --no-history chromium 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67700225/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com