Kali Update and Upgrade Error Fixed

Kali Update and Upgrade Error Fixed

Most of kali User face Update and Upgrade problem, This is so frustrating, I researched on that and try to fix it. What all steps I used to fix kali update and upgrade error, i am going to share with you.Step 1: Modify your sources.list to latest repositories Provide by kali.
Open terminal and type “apt-get install gedit” without quotes # if gedit editor is not installed“gedit /etc/apt/sources.list” now copy everything from below paragraph, paste it on sources.list and save it.Note: Always check for latest Respositories, it may change over time , Click here for latest one

result might be amd64 for 64 bit machine or i386 for 32 bit machine.Step 4:gedit /var/lib/dpkg/arch
if you see any other architecture other than the output of step 3 just remove it and save it.Step 5:Now apt-get update && apt-get upgrade
It will work like Charm and save your Day.

Plz it is emergency! When I run “service postgresql start” to connect to metasploit database it give error and says “failed” as I have newly installed kali linux and I know some basic things in kali linux I followed all the above steps did a ton of google searches but still didn’t solve the problem I would really appreciate your help.

Hi Hackaholic. Could you please show me the way to install Grub customizer?. I`ve tried to install it from PPA and have seen a few Web sites with out success. Is there a way to permanently fix it?
Thank you

no data in the directory /var/lib/dpkg/arch
about the Architecture., the file is empty
my kali Architecture:is i386 and the same error
occured again when i write this command
“apt-get update –fix-missing”

root@kali:~# msfconsole
DEPRECATION WARNING: Support for Rails < 4.1.0 will be dropped. (called from at /opt/metasploit/apps/pro/ui/lib/metasploit/pro/ui.rb:16)
/opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/wicked-0.5.0/app/controllers/wicked/wizard_controller.rb:5:in `’: uninitialized constant ApplicationController (NameError)
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb:465:in `block (2 levels) in eager_load!’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb:464:in `each’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb:464:in `block in eager_load!’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb:462:in `each’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb:462:in `eager_load!’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/engine.rb:347:in `eager_load!’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/application/finisher.rb:56:in `each’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/application/finisher.rb:56:in `block in ‘
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/initializable.rb:30:in `instance_exec’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/initializable.rb:30:in `run’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/initializable.rb:55:in `block in run_initializers’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:345:in `each’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:345:in `call’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each’
from /opt/metasploit/ruby/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/initializable.rb:54:in `run_initializers’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/application.rb:215:in `initialize!’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:30:in `method_missing’
from /usr/share/metasploit-framework/config/environment.rb:5:in `’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
from /opt/metasploit/apps/pro/vendor/bundle/ruby/2.1.0/gems/railties-4.0.13/lib/rails/application.rb:189:in `require_environment!’
from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:63:in `require_environment!’
from /usr/share/metasploit-framework/lib/metasploit/framework/command/base.rb:81:in `start’
from /opt/metasploit/apps/pro/msf3/msfconsole:48:in `’

W: Failed to fetch cdrom://[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20150205-22:46]/dists/kali/main/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20150205-22:46]/dists/kali/non-free/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20150205-22:46]/dists/kali/contrib/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20150205-22:46]/dists/kali/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

W: Failed to fetch cdrom://[Debian GNU/Linux 7.0 _Kali_ – Official Snapshot amd64 LIVE/INSTALL Binary 20150205-22:46]/dists/kali/non-free/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download. They have been ignored, or old ones used instead.
root@kali:~#

open terminal
and then type apt-get install gedit
gedit /etc/apt/sources.list
and delete all code paste this new code
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
and save it
then type apt-get update && apt-get upgrade
update working

# apt-get install tor
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package tor is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘tor’ has no installation candidate
what is the problem………?

HI buddy, I installed kalilinux in my android
I already edit my repository like u say but while I using apt-get update I see error in all package list n my architecture is armhf
So how I can get update n installing kalilinux tools
Thanks before

hi guys.
i really need your help here.
i have been on this issue for a very long time
since i got my kali linux ,
i havent been able to install or run any programme on it.
keeps telling me…bash: ./TheFatRat-master: No such file or directory
i have tried a lot of source.list including the present kali present repository source.list thinking it is the problem but to no avail
am not the giving up kind of guy even if this has been on for more than 3weeks now. i believe so much in kali linux

when i am updating apt-get update I am getting below error:
0% [Connecting to http.kali.org (192.99.200.113)]
after some time:
Err:1 http://http.kali.org/kali kali-rolling InRelease
Could not connect to http.kali.org:80 (192.99.200.113), connection timed out
Reading package lists… Done
W: Failed to fetch http://http.kali.org/kali/dists/kali-rolling/InRelease Could not connect to http.kali.org:80 (192.99.200.113), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.

I’m a beginner, don’t know much in depth about the issue. I, though, wasted my two whole days searching on internet about same problem: “kali rolling repository is not updating.” Nothing worked. Then I switched from my public hostel Wi-Fi to paid mobile internet hotspot, re-tried the following command:

apt-get update
and it worked perfectetly. If U are using some school or public Wi-Fi, it maybe restricting or blocking your hits. Try SWITCHING your internet connections or use VPN. Worked for me.

User defined time zone, leaving /etc/localtime unchanged.
Local time is now: Wed May 30 16:52:18 DST 2018.
Universal Time is now: Wed May 30 14:52:18 UTC 2018.
Run ‘dpkg-reconfigure tzdata’ if you wish to change it.