Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.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
不能';t在bash for windows中更新和下载任何软件包_Bash_Ubuntu_Ubuntu 14.04_Windows Subsystem For Linux - Fatal编程技术网

不能';t在bash for windows中更新和下载任何软件包

不能';t在bash for windows中更新和下载任何软件包,bash,ubuntu,ubuntu-14.04,windows-subsystem-for-linux,Bash,Ubuntu,Ubuntu 14.04,Windows Subsystem For Linux,我正在尝试使用官方的bash for windows 64位(ubuntu 14.04)。问题是,当我尝试更新任何软件包或安装新软件包(例如g++等)时,总是会出现相同的错误: root@notebook:~# sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done g++ is already the newest vers

我正在尝试使用官方的bash for windows 64位(ubuntu 14.04)。问题是,当我尝试更新任何软件包或安装新软件包(例如g++等)时,总是会出现相同的错误:

root@notebook:~# sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:5.3.1-1ubuntu1).
0 to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up qemu-user-binfmt (1:2.5+dfsg-5ubuntu10.41) ...
update-binfmts: warning: unable to close /proc/sys/fs/binfmt_misc/register: Invalid argument
update-binfmts: warning: unable to enable binary format qemu-aarch64
update-binfmts: exiting due to previous errors
dpkg: error processing package qemu-user-binfmt (--configure):
 subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 qemu-user-binfmt
E: Sub-process /usr/bin/dpkg returned an error code (1)

包qemu用户binfmt的脚本错误

首先,您需要尝试cmd:

apt-get purge qemu-user-binfmt
若问题未解决,则需要删除dir/var/lib/dpkg/info/中的文件:

qemu-user-binfmt.pre*
qemu-user-binfmt.post*

apt-get remove qemu-user-binfmt

包qemu用户binfmt的脚本错误。首先,您需要尝试cmd:apt-get-purge-qemu-user-binfmt。若问题未解决,则需要删除dir/var/lib/dpkg/info/中的qemu用户binfmt.pre*、qemu用户binfmt.post*文件。并运行apt-get-remove-qemu-user-binfmt。@谢谢。这有帮助。你能把你的答案写下来吗?我会接受的。