适用于 Ubuntu 12.1 的 apt-get 存储库

适用于 Ubuntu 12.1 的 apt-get 存储库

我有一个 Magento 1.9 安装,几年前在 Ubuntu 12.1 上安装时可以正常工作。从那时起,Ubuntu 本身、php(5 到 7)和 mysql 等都进行了多次更新,以至于它崩溃了,我甚至无法登录管理员。但我确实需要访问权限,以便帮助在新机器上进行全新安装。所以,这对于 VM 来说是一项完美的工作 - 我从存档的 12.1 ISO 中启动了一个,一切准备就绪,只是......我缺少我熟悉的工具,我通常在 Ubuntu 安装后只需 apt-get install(如“mc”)。

因此,我正在寻找可以添加到 /etc/sources 中的地方,以便它能够正常工作,而不是我看到的。谢谢。

root@MagentoLegacy:~# apt-get install mc
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.
 mc : Depends: libssh2-1 (>= 1.2.8) but it is not installable
E: Unable to correct problems, you have held broken packages.
root@MagentoLegacy:~#

(编辑)这是 /etc/apt/sources.list - 我在 Google 上搜索解决方案后添加了最后一行,其余部分都很好:

#

# deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ precise main restricted

#deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.5 LTS _Precise Pangolin_ - Release amd64 (20140806.1)]/ precise main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise universe
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu precise partner
# deb-src http://archive.canonical.com/ubuntu precise partner

## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu precise main
# deb-src http://extras.ubuntu.com/ubuntu precise main

deb http://www.tataranovich.com/debian precise main

(编辑)以下是 apt-cache 所说的内容:

root@MagentoLegacy:~# apt-cache policy mc libssh2-1
mc:
  Installed: (none)
  Candidate: 3:4.8.18-1
  Version table:
     3:4.8.18-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.17-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.16-2 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.16-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.15-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.14-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.13-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.12-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.11-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
     3:4.8.10-1 0
        500 http://www.tataranovich.com/debian/ precise/main amd64 Packages
libssh2-1:
  Installed: (none)
  Candidate: (none)
  Version table:
root@MagentoLegacy:~# ^C

相关内容