我最近在旧电脑上安装了 Ubuntu 15.10。我现在正尝试创建一个 Windows USB 驱动器,以安装在我正在构建的新电脑上。当我添加存储库时
sudo add-apt-repository ppa:colingille/freshlight
当我尝试更新时,出现以下错误:
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/wily/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/colingille/freshlight/ubuntu/dists/wily/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
然后当我尝试:
sudo apt-get install winusb
我得到:
E: Unable to locate package winusb
有人能帮我找到解决办法吗?
答案1
要在 Ubuntu(16.04、15.10、15.04 和 14.04)或 Linux Mint(17.x 或 18)及其衍生产品中安装。要添加 PPA 并安装 WinUSB,请使用以下命令:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt 更新
安装 winusb
答案2
Winusb 包是不是可从 Wily 的 PPA 获得,但有一种在我的系统上使用 Saucy 包安装它的方法效果很好。我在 Trusty 下测试过,但它在 Wily 下也应该有效:
首先从 PPA 下载 64 位或 32 位软件包:
64 位:
wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_amd64.deb
32位:
wget https://launchpad.net/~colingille/+archive/freshlight/+files/winusb_1.0.11+saucy1_i386.deb
然后安装文件:
sudo dpkg -i winusb_1.0.11+saucy1*
您将看到如下错误:
andrew@corinth:~$ sudo dpkg -i winusb_1.0.11+saucy1*
(Reading database ... 197467 files and directories currently installed.)
Preparing to unpack winusb_1.0.11+saucy1_amd64.deb ...
Unpacking winusb (1.0.11+saucy1) over (1.0.11+saucy1) ...
dpkg: dependency problems prevent configuration of winusb:
winusb depends on libwxbase2.8-0 (>= 2.8.12.1); however:
Package libwxbase2.8-0 is not installed.
winusb depends on libwxgtk2.8-0 (>= 2.8.12.1); however:
Package libwxgtk2.8-0 is not installed.
winusb depends on gksu; however:
Package gksu is not installed.
dpkg: error processing package winusb (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Errors were encountered while processing:
winusb
andrew@corinth:~$
修复错误:
sudo apt-get -f install
这是一个非常笨拙的方法(并且肯定不适用于所有的 deb 包!)但在我的 Trusty 系统上确实有效,并且应该也适用于 Wily:
参考:
答案3
有一个 winusb 的分支,在我的 Ubuntu Mate 18.04 上运行良好
这是WoeUSB
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install woeusb
您会在菜单中找到启动器图标(或在菜单中搜索)。
答案4
WinUSB 无法在 Ubuntu 18.04 上正常工作。
改用woeUSB:
sudo apt-get install woeusb
安装后只需重新启动系统