0

Few days ago I was having problem installing iceweasel browser in Kali OS which I removed by mistake.Some members here helped me to sort our the problem. The source.list entries were deleted.So I entered manually entries in source.list and ran two commands

sudo apt-get update
sudo apt-get upgrade

I took two hrs to upgrade 193MB of all software online.

My query is that, whether we can do this up-gradation offline via kali dvd or usb, as they contain all the softwares required. How to proceed for that and what all commands are used.

Thank You

1
  • Please check new section in my answer and reply if it is helpful.
    – Danatela
    Jul 29, 2013 at 2:45

1 Answer 1

1

I use Ubuntu, but your question about Kali OS is very like those I had when I was introducing to it. I think the answer will be common for any Debian-based distributions. Look for such entries in your sources.list file:

# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted

Do not pay attention to the name I provided. Your will be different. Just notice the syntax of this entry. If you want that software in this repository to be included into update alternatives, simply remove hash sign. But this will not provide you last updates or even large repositories because CDs are usual used to install software initially, not to update it.


UPD: If what do you need is only to restore software came from DVD and not involve Internet in any part, then you should comment out all entries that have URL's like

# deb http://example-link.com/mirror/distro releasename repository1 repository2

and retain only cdrom entries enabled, then run:

mv /var/lib/apt/lists /var/lib/apt/lists.old
apt-get update

This will give you options to install software using original DVD, but sooner or later you will discover that it is not enough. Also you did upgrade, so you will have to deal with unmet dependencies. Possible solution is to downgrade all involved packages, but I strongly recommend you not to do it.


What is really useful that is mirroring. When you have slow connection on one computer and rapid on another, you can use rapid Internet connection to build mirror then deliver this mirror to "slow-or-expensive-Internet" computer. This guide covers first part completely. I just recommend you to stop before creating DVDs and use portable HDD to hold the mirror. When you connect your storage to computer you wish to update, create entries like I have in sources.list:

deb file:/media/Elements/UbuntuMirror1/Ubuntu precise main restricted universe multiverse
deb file:/media/Elements/UbuntuMirror1/Ubuntu precise-updates main restricted universe multiverse
...
deb file:/media/Elements/UbuntuMirror1/Pidgin precise main
deb file:/media/Elements/UbuntuMirror1/VirtualBox precise contrib

Sorry for Ubuntu-specific release names and all related stuff. I just took them for example. You can change 'precise' to 'wheezy' or Kali-specific release name. But I must state that apt-get works most unified on any Debian system so I hope my tips will be helpful. And keep in mind that if your Internet connection is not slow, not so expensive and if you do not have another computer with really fast Internet, the best way to update system is following default procedures.

2
  • Thanks for your reply.But I haven't got really what you want to say.I just wanna ask, that as we already have all the software in our dvd(from where we installed linux). So when we delete some listing from source.list .Can we recover it from our dvd or usb. And so upgrading our software from it and not online.You can consider that their is no internet connection.
    – wek
    Jul 18, 2013 at 8:07
  • I added a section, check it.
    – Danatela
    Jul 18, 2013 at 10:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .