小编kyr*_*git的帖子

如何修复 ubuntu 16.04 上的更新问题

虽然更新我有这样的错误

W: Target Packages (main/binary-amd64/Packages) is configured 
multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/google-chrome.list:3 and /etc/apt/sources.list.d/google.list:1

N: Skipping acquire of configured file 'main/binary-i386/Packages' …
Run Code Online (Sandbox Code Playgroud)

update-manager package-management apt 16.04

15
推荐指数
2
解决办法
5万
查看次数

在 Ubuntu 14.04 中安装自制软件

我正在尝试在我的 Ubuntu 上安装自制软件。我遵循了所有这些说明并使用了这些命令:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
Run Code Online (Sandbox Code Playgroud)

但是当我运行这个时:

brew tap homebrew/dupes 
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

No command 'brew' found, did you mean:
Command 'qbrew' from package 'qbrew' (universe)
Command 'brec' from package 'bplay' (universe)
Run Code Online (Sandbox Code Playgroud)

command-line software-installation 14.04

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

我的 bash 脚本有什么问题?

#!/bin/bash
var=1
if [[ $var -eq 0 ]]
then
    echo "No students"
elif [[ $var -eq 1 ]]
then
    echo "1 student"
elif [[ $var -eq 2]]
then
    echo "2 students"
elif [[ $var -eq 3 ]]
then 
    echo "3 students"
elif [[ $var -eq 4 ]]
then
    echo "4 students"
else
    echo "A lot of students"
fi
Run Code Online (Sandbox Code Playgroud)

我写了这个 bash 脚本。但它抛出这个错误:

Failed test #1. Runtime error:
main.sh: line 11: syntax error in conditional expression
main.sh: line 12: syntax error near …
Run Code Online (Sandbox Code Playgroud)

command-line bash scripts

-4
推荐指数
2
解决办法
154
查看次数