安装 libimobiledevice 时出错

安装 libimobiledevice 时出错

我尝试安装libimobiledevice却发现出现以下错误:

sudo apt-get install libimobiledevice
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libimobiledevice

我发现这一页我尝试按照这个方法操作,但是没有/etc/apt/sources.list.d/pmcenery.list可以编辑的文件,只有一个文件,/etc/apt/sources.list.d/pmcenery-ppa-trusty.list我在其中替换了以下行

deb http://ppa.launchpad.net/pmcenery/ppa/ubuntu trusty main

deb http://ppa.launchpad.net/pmcenery/ppa/ubuntu maverick main

但在此之后(和apt-get update)相同的错误仍然存​​在。我甚至可以产生另一个错误,如下所示:

sudo apt-get install libimobiledevice1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libimobiledevice1 : Depends: libtasn1-3 (>= 1.6-0) but it is not installable
E: Unable to correct problems, you have held broken packages.

如何libimobiledevice在 Ubuntu 14.045 LTS 上安装以便将音乐文件(mp3)传输到iphone 6,以便我可以在此听音乐iphone 6

答案1

如果你在这里着陆,Ubuntu 20.04 Focal那么你需要运行sudo apt install libimobiledevice6 usbmuxd libimobiledevice-utils

答案2

你可以使用它来通过 ifuse 工具挂载 iPhone。因此,在你像之前一样安装 libimobiledevice6 之后,你就可以使用 ifuse 挂载 iPhone。

但首先你需要安装一些软件包,包括你安装的软件包。为了帮助看到这个问题的其他人,我将解释我是如何从头开始做的:

sudo apt-get install ideviceinstaller python-imobiledevice libimobiledevice-utils libimobiledevice6 libplist3 python-plist ifuse

然后将 iPhone 插入 USB 端口并配对 iPhone:

idevicepair pair

注意:如果出现错误“错误:无法通过设备 xxxxxxxxxx 进行验证,因为已设置密码。请在设备上输入密码并重试。”,请解锁 iPhone 并在安全弹出窗口中选择“信任”,然后重复上述命令。

接下来使用 ifuse 安装 iPhone:

ifuse /media/iPhone/

您可以以 root(sudo)或普通用户身份运行上述 ifuse 命令,这取决于您是否允许用户安装和卸载您的 iPhone。

要卸载 iPhone,您应该这样做以避免将来出现安装问题,请依次使用以下命令:

fusermount -u /media/iPhone/
idevicepair unpair

更多信息请点击这里: http://www.dedoimedo.com/computers/linux-iphone-6.html

答案3

您添加的 PPA 已经过时 - 需要更改为“maverick”应该是一个线索 - 因此现在需要先将其删除,然后再添加正确的 PPA:

sudo apt-get install ppa-purge
sudo ppa-purge ppa:pmcenery/ppa

(或者直接删除并运行,sudo apt-get update因为您实际上并没有安装任何东西)

使用安装

sudo add-apt-repository ppa:martin-salbaba/ppa+libimobiledevice
sudo apt-get update
sudo apt-get install libimobiledevice

所有依赖项都应从该存储库中提取。

请注意,它可能无法满足您的预期目的。您总是受制于不支持 Linux 的制造商。新闻和更新http://www.libimobiledevice.org/

相关内容