missed python-apt dependency

Bug #1178245 reported by Igor A Tarasov
62
This bug affects 15 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

Package ubuntu-release-upgrader-core 1:0.190.6 missed python-apt dependency.

root@router:/etc/dhcp# do-release-upgrade
Checking for a new Ubuntu release
Получено:1 Upgrade tool signature [198 B]
Получено:2 Upgrade tool [1 206 kB]
Получено 1 206 kБ за 0с (0 Б/c)
authenticate 'raring.tar.gz' against 'raring.tar.gz.gpg'
extracting 'raring.tar.gz'
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-0znpwp/raring", line 6, in <module>
    from DistUpgrade.DistUpgradeMain import main
  File "/tmp/ubuntu-release-upgrader-0znpwp/DistUpgrade/DistUpgradeMain.py", line 27, in <module>
    import apt
ImportError: No module named apt

Need to install python-apt manually with aptitude to work.

Revision history for this message
Brian Murray (brian-murray) wrote :

ubuntu-release-upgrader-core depends on python3-distupgrade which in turn depends on python3-apt.

Revision history for this message
Igor A Tarasov (dicr) wrote :

See my screen output log.
"do-release-upgrade" command not working and python-apt is NOT installed and there are NO broken dependecies in system:

root@router:/etc/dhcp# LANG=C apt-get check
Reading package lists... Done
Building dependency tree
Reading state information... Done

So, there are missed dependencies. In other way I will not able to delete python-apt because of depend3ncy problems. So, if I can delete this package without broken dependencies, then no dependency is working.

tags: added: quantal
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Confirmed
Revision history for this message
Paul Tobias (tobias.pal) wrote :

I just ran into this:
# do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1,140 kB]
Fetched 1,140 kB in 0s (0 B/s)
authenticate 'saucy.tar.gz' against 'saucy.tar.gz.gpg'
extracting 'saucy.tar.gz'
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-wv2pgq/saucy", line 6, in <module>
    from DistUpgrade.DistUpgradeMain import main
  File "/tmp/ubuntu-release-upgrader-wv2pgq/DistUpgrade/DistUpgradeMain.py", line 27, in <module>
    import apt
ImportError: No module named apt

It's been 5 months since it has been reported, can we get this fixed?

Revision history for this message
Paul Tobias (tobias.pal) wrote :

The package python3-apt is not getting pulled in when installing ubuntu-release-upgrader-core:

# apt-get install ubuntu-release-upgrader-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  python3-distupgrade python3-update-manager
The following NEW packages will be installed:
  python3-distupgrade python3-update-manager ubuntu-release-upgrader-core
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 201 kB of archives.
After this operation, 1,229 kB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://nl.archive.ubuntu.com/ubuntu/ raring-updates/main python3-update-manager all 1:0.186.2 [33.9 kB]
Get:2 http://nl.archive.ubuntu.com/ubuntu/ raring-updates/main python3-distupgrade all 1:0.192.13 [143 kB]
Get:3 http://nl.archive.ubuntu.com/ubuntu/ raring-updates/main ubuntu-release-upgrader-core all 1:0.192.13 [23.9 kB]
Fetched 201 kB in 0s (742 kB/s)
Selecting previously unselected package python3-update-manager.
(Reading database ... 42859 files and directories currently installed.)
Unpacking python3-update-manager (from .../python3-update-manager_1%3a0.186.2_all.deb) ...
Selecting previously unselected package python3-distupgrade.
Unpacking python3-distupgrade (from .../python3-distupgrade_1%3a0.192.13_all.deb) ...
Selecting previously unselected package ubuntu-release-upgrader-core.
Unpacking ubuntu-release-upgrader-core (from .../ubuntu-release-upgrader-core_1%3a0.192.13_all.deb) ...
Processing triggers for man-db ...
Setting up python3-update-manager (1:0.186.2) ...
Setting up python3-distupgrade (1:0.192.13) ...
Setting up ubuntu-release-upgrader-core (1:0.192.13) ...

Revision history for this message
Nick Wellnhofer (nick-aevum) wrote :

ubuntu-release-upgrader-core depends on python3-apt but it doesn't depend on python-apt (for Python 2.7). The release upgrade process seems to download Python 2.7 code into /tmp which needs python-apt.

Revision history for this message
Brian Murray (brian-murray) wrote :

While the release upgrade process does run using python2 so ubuntu-release-upgrader should depend on python-apt, I'm curious as to what type of install people performed where python-apt was not installed. It is included with almost every task. Thanks!

Revision history for this message
Adam Conrad (adconrad) wrote :

python-apt won't be installed in most minimal non-desktop installations, it's not that odd for it to not show up.

Changed in ubuntu-release-upgrader (Ubuntu):
status: Confirmed → Triaged
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Garen (garenp) wrote :

I just tried to upgrade a 10.04 Lucid system and ran into this bug, which seems to leave the system in a completely stuck state.
What work around is there, if any?
Trying to manually install python-apt fails.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.