princemaozh
October 25th, 2011, 10:51 AM
1) First trial:
At the beginning, my workstation is online, and I installed some packages using command "sudo apptitude install ...". (but I did NOT install vim-gnome)
Later my workstation becomes offline (without internet access), i typed the below command:
maoz@maoz-ws:~$ sudo aptitude install vim-gnome
and it says:
The following NEW packages will be installed:
libreadline5{a} libruby1.8{a} vim-gnome vim-gui-common{a} vim-runtime{a}
0 packages upgraded, 5 newly installed, 0 to remove and 350 not upgraded.
Need to get 8,716kB of archives. After unpacking 35.5MB will be used.
Do you want to continue? [Y/n/?]
the machine is offline and I did not install vim-gnome before. i am just wondering how aptitude knows the dependencies for vim-gnome?
2) second trial:
on an offline machine which is never online, i typed the same command:
maoz@maoz-ws2:~$ sudo aptitude install vim-gnome
but it says:
Couldn't find any package whose name or description matched "vim-gnome"
Couldn't find any package whose name or description matched "vim-gnome"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
So, why it behaves differently in these 2 cases? What is the trick?
Where (in which files) does the ubuntu store the package dependency information etc?
At the beginning, my workstation is online, and I installed some packages using command "sudo apptitude install ...". (but I did NOT install vim-gnome)
Later my workstation becomes offline (without internet access), i typed the below command:
maoz@maoz-ws:~$ sudo aptitude install vim-gnome
and it says:
The following NEW packages will be installed:
libreadline5{a} libruby1.8{a} vim-gnome vim-gui-common{a} vim-runtime{a}
0 packages upgraded, 5 newly installed, 0 to remove and 350 not upgraded.
Need to get 8,716kB of archives. After unpacking 35.5MB will be used.
Do you want to continue? [Y/n/?]
the machine is offline and I did not install vim-gnome before. i am just wondering how aptitude knows the dependencies for vim-gnome?
2) second trial:
on an offline machine which is never online, i typed the same command:
maoz@maoz-ws2:~$ sudo aptitude install vim-gnome
but it says:
Couldn't find any package whose name or description matched "vim-gnome"
Couldn't find any package whose name or description matched "vim-gnome"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
So, why it behaves differently in these 2 cases? What is the trick?
Where (in which files) does the ubuntu store the package dependency information etc?