我正在尝试使用此命令在Ubuntu Mate中添加存储库 -
public interface ABPickerAnyController<E, T> {
boolean isPicked(E expect, T iterTarget);
}
public static <E, T> T pickAnyFirst(E expect, Collection<T> collection, ABPickerAnyController<E, T> pickerController) {
if (null == expect || ABTextUtil.isEmpty(collection)) {
return null;
}
T picked = null;
for (T t : collection) {
if (pickerController.isPicked(expect, t)) {
picked = t;
break;
}
}
return picked;
}
// pick the item with `id` equals `abc123`
Item item = pickAnyFirst("abc123", m_parts, new ABPickerAnyController<Item, String>(){
@Override
public boolean isPicked(String expect, Item iterTarget){
return expect.equals(iterTarget.getId());
}
})
if(null != item){
m_parts.remove(item);
m_adapter.notifyDataChanged();
}
但我有这个输出 -
sudo apt-get-repository "****************(repository name)"
我试过这个 -
sudo: apt-get-repository: command not found
还有这个 -
sudo apt-get install software-properties-common python-software-properties
但仍然没有找到相同的命令输出。
这背后的原因是什么?我怎么能解决这个问题?
答案 0 :(得分:2)
也许你应该试试
sudo add-apt-repository“(存储库名称)”