如何在 Linux Mint Box 上使用 laravel homestead 中的 apt-get?

How to use apt-get in laravel homestead on a Linux Mint Box?

我的 Linux Mint 计算机上安装了一个 laravel homestead 盒子。对于我的项目,我需要在盒子中安装 inkscape 以将 EPS 转换为 SVG。

当我 运行 vagrant ssh 并在框中然后 sudo apt-get update 我收到所有来源的 404 错误。但是当我 ping IP 地址时,它找到了地址。

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/utopic-security/main/source/Sources  404  Not Found [IP: 91.189.91.15 80]

vagrant@homestead:~$ ping 91.189.91.15
PING 91.189.91.15 (91.189.91.15) 56(84) bytes of data.
64 bytes from 91.189.91.15: icmp_seq=1 ttl=63 time=566 ms

我需要在我的 homestead 环境中做些什么才能让 apt-get 工作吗?

这可能与使用非 LTS 版本的 ubuntu 称为生命周期结束版本有关。我已经看到类似的错误是由于使用 EOF 版本而导致的。因为那些已经停止支持。由于 Mint 使用 ubuntu 和 debain 作为基础。您可以在以下位置检查您的铸币盒的 ubuntu release/kernel 是否处于停产版本:

查看您的铸币盒使用的是什么-> http://www.linuxmint.com/oldreleases.php 将其关联起来 如果需要,请访问 ubuntu 官方网站 -> https://wiki.ubuntu.com/Releases

无论如何,解决此问题的最简单方法是执行以下两个步骤:

1- 备份你的源列表 -> sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

2- 打开源文件“/etc/apt/sources.list” 将 us.archive 的所有实例或 http://us.archive.ubuntu.com/ubuntu/ 中的存档重命名为

http://old-releases.ubuntu.com/ubuntu/

也对http://security.ubuntu.com/ubuntu/dists/saucy-security/universe/binary-i386/Packages to http://old-releases.ubuntu.com/..

做同样的事情

3- 运行 执行上述操作后 sudo apt-get update。

这应该可以解决问题。您还可以考虑升级到以 ubuntu 的 LTS 支持版本为基础的 mint 版本。 http://www.linuxmint.com/oldreleases.php