小编Joh*_*zle的帖子

apt获取更新丢失的发布文件

执行apt-get-update 后,我总是收到以下错误消息:

Reading package lists... Done
W: The repository 'http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
E: Failed to fetch http://ppa.launchpad.net/ubuntu-audio-dev/ppa/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have …
Run Code Online (Sandbox Code Playgroud)

apt repository 16.04

10
推荐指数
1
解决办法
10万
查看次数

将文件名存储在减去扩展名的变量中

文件:test.zip

Bash 脚本

while read filename; do
zip_file=${filename}
# do stuff    
done; 
Run Code Online (Sandbox Code Playgroud)

存储在变量 = "test" 中的值

bash scripts

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

16.04 ×1

apt ×1

bash ×1

repository ×1

scripts ×1