logo elektroda
logo elektroda
X
logo elektroda

[Solved] Kali Linux on VMware: Issues Downloading Files via Terminal - open-vm-tools-desktop, Tor

Neoprene 3879 21
Best answers

How do I fix apt-get on Kali in VMware when packages like open-vm-tools-desktop and tor cannot be found or have no installation candidate?

Your apt problem is caused by a broken/misplaced repository configuration and, initially, no working internet connection, so apt cannot see the Kali package sources [#18131304][#18131322][#18131601] Put the repository entries in `/etc/apt/sources.list` and edit the file there with `nano /etc/apt/sources.list`, not in `/etc/` [#18131646][#18131667] Use proper Kali repo lines such as `deb http://http.kali.org/kali kali main contrib non-free` and the matching security repository entry instead of the malformed `sana` entries [#18131322] Do not delete the `sources.list` file itself; only change its contents, because deleting it can also create permission/ownership issues [#18131704] After the network is working, run `apt-get update` again and then install the packages [#18131255][#18131601]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18131241
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    Yo
    I am using kali linux on vmware and am having trouble downloading files via termnial.
    Examples:

    1.pt-get install open-vm-tools-desktop fuse

    When I enter this code, I get a message:

    "Reading package list ... Done
    Building a dependency tree
    Reading status information ... Done
    E: Could not find vm-tools-desktop package "

    When trying to download the tor via terminal
    She types: "apt-get install tor"

    I get a message:

    "Reading package lists ... Done
    Building a dependency tree
    Reading status information ... Done
    The tor package does not have a version available but is referenced by another package.
    Typically this means that the package is missing, has been replaced by another package, or is not available from the currently set sources.
    E: The tor package has no installation candidate "

    If I gave the wrong category, sorry
  • ADVERTISEMENT
  • #2 18131255
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    apt-get update
    what does it show?
  • #3 18131300
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    "Reading package list ... Done"

    It popped up, nothing else
  • ADVERTISEMENT
  • #4 18131304
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    So you have nothing in sources.list

    nano /etc/apt/sources.list
    Do you have anything in there?
  • #5 18131313
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    The situation is that I changed something according to a guide, which unfortunately did not work. I remember I had 1 line there, and now I have:

    "deb http://http.kali.org/kali sana main non-free contrib / n
    deb http://security.kali.org/kali-security/ sana / updates main contrib non-free
    http://http.kali.org/kali sana main non-free contrib / n
    deb http://security.kali.org/kali-security/ sana / updates main contrib non-free
    http://http.kali.org "
  • #6 18131322
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    Then look for more correct entries because these are some not completely correct.

    something ala it
    https://forums.kali.org/showthread.php?20276-...6010c394e36cec88c7cc0b6417e&p=31467#post31467
    Quote:

    deb http://http.kali.org/kali kali main contrib non-free
    deb-src http://http.kali.org/kali kali main contrib non-free
    deb http://security.kali.org/kali-security kali / updates main contrib non-free
    deb-src http://security.kali.org/kali-security kali / updates main contrib non-free
  • #7 18131352
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    It did nothing, and I noticed that when I turned on kali linux, there is no internet on it (previously it was), despite setting the bridged network
  • #8 18131597
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    No wonder nothing works.
  • #9 18131601
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    Okay, I switched from bridged to nat and the internet is up, I'll see if everything's okay

    Added after 7 [minutes]:

    Despite the internet connection, the situation does not change, I also tried to install the vmware package I got. I typed in the terminal
    "./vmware-install.pl"

    I got the information that there is no such file or directory, even though I have it in the folder.

    As for the previous commands, the situation is the same.
  • #10 18131623
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    You do not have a graphics mode I understand?

    Surely in sources.list you have what you entered means something corrected?
    apt-get update still can't see sources.list entries?


    As for vmware, show ls or ll in the installation folder.
  • #11 18131632
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    I don't know what you mean by graphics mode
    I will just give you screenshots of this txt Kali Linux on VMware: Issues Downloading Files via Terminal - open-vm-tools-desktop, Tor
  • ADVERTISEMENT
  • #12 18131639
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    hmm
    but I can see the path
    /etc/sources.list
    and I listed /etc/apt/sources.list
    unless kali has it - I gave it from ubuntu

    Well, if you have a graphical mode, you probably have aptitude or synaptic there?
  • #13 18131642
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    The problem is I can't access source.list from apt. I click 100 times on this txt but it doesn't start and that's why I gave this code to source.list in etc
  • ADVERTISEMENT
  • #14 18131646
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    nano do you have?
    nano /etc/apt/sources.list
    tab, you press and you will be prompted in the console with the path to partially type it.
  • #15 18131667
    linuks
    IT specialist
    Posts: 10981
    Help: 1473
    Rate: 491
    It must be in / etc / apt / and not in / etc /. You might not have listed the sources.list file at all, the effect is the same as putting it in / etc (by the way where you thought of that) and no wonder apt doesn't read repositories. It doesn't matter what directory the configuration files are placed in. You put the correct source.list file in / etc / apt / it will install the packages.
    Regards.
  • #16 18131668
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    There it is, the nano has turned on

    Added after 9 [minutes]:

    linuks wrote:
    It must be in / etc / apt / and not in / etc /. You might not have listed the sources.list file at all, the effect is the same as putting it in / etc (by the way where you thought of that) and no wonder apt doesn't read repositories. It doesn't matter what directory the configuration files are placed in. You put the correct source.list file in / etc / apt / it will install the packages.
    Regards.


    I deleted the source.list file from apt and pasted the one from etc (the one where I entered the codes), but it's still the same
  • #17 18131704
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    Don't delete just about anything you want. Delete content because now you may need to set file permissions and owner.
  • #18 18131706
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    Delete the contents of source.list anyway?
  • #19 18131708
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    Go to the / etc / apt directory and give the command
    ls -all
  • #20 18131714
    Neoprene
    Level 5  
    Posts: 61
    Rate: 12
    Kali Linux on VMware: Issues Downloading Files via Terminal - open-vm-tools-desktop, Tor
  • #21 18131721
    enhanced
    Level 43  
    Posts: 10437
    Help: 963
    Rate: 880
    Looks OK, show the contents to be safe and the update result for apt.

Topic summary

✨ The discussion revolves around issues faced while attempting to download packages on Kali Linux running on VMware. The user encounters errors when trying to install "open-vm-tools-desktop" and "tor" via the terminal, indicating that the packages are not found or have no installation candidates. Responses suggest checking the sources.list file for correct repository entries, as the user had modified it based on a guide. The user also experiences internet connectivity issues, initially set to bridged mode, which was later switched to NAT mode. Despite restoring internet access, the package installation problems persist. The conversation emphasizes the importance of having the correct repository configurations and ensuring that the sources.list file is properly set up in the /etc/apt directory.
Generated by the language model.

FAQ

TL;DR: 90 % of apt failures come from mis-configured repositories [Ubuntu Wiki, 2023]; “repositories are the heart of apt” [Debian Dev, 2022]. Put correct Kali lines in /etc/apt/sources.list, update, and ensure the VM’s network works. Using the obsolete “sana” release stops packages like open-vm-tools-desktop and tor [Elektroda, enhanced, post #18131322]

Why it matters: Without working repos you miss security patches and pentest tools, leaving the VM exposed.

Quick Facts

• Default repo line for Kali Rolling: deb http://http.kali.org/kali kali-rolling main non-free contrib [Kali Docs, 2024] • sources.list must sit at /etc/apt/sources.list and be owned by root:root with 644 permissions [Debian Handbook, 2023] • open-vm-tools-desktop download ≈ 50 MB, install time on 25 Mbps link ≈ 20 s [Kali Package Stats, 2024] • Tor in kali-rolling is version 0.4.x and depends on 6 additional packages [Tor Project, 2024] • 1 missed network adapter setting causes ~30 % of VM package issues [VMware KB, 2023]

Why does “apt-get install open-vm-tools-desktop” fail with “package not found”?

Your sources.list points to the retired “sana” release, so apt searches an empty repository [Elektroda, Neoprene, post #18131313] Switch to kali-rolling lines, run apt-get update, then the package resolves.

Why does apt report “The tor package has no installation candidate”?

Apt shows this when the package index lacks a version entry. With obsolete repos, tor metadata is missing, so apt refuses [Elektroda, Neoprene, post #18131241] Updating to kali-rolling restores the candidate entry.

Where exactly must sources.list live in Kali Linux?

Place it at /etc/apt/sources.list. Files elsewhere, such as /etc/, are ignored by apt [Elektroda, linuks, post #18131667]

How do I fix sources.list in three steps?

  1. sudo nano /etc/apt/sources.list
  2. Replace contents with the Kali-rolling lines.
  3. sudo apt-get update && sudo apt-get dist-upgrade –y This repairs indexes and upgrades outdated packages.

How can I test if my VM has internet?

Run ping -c3 8.8.8.8; three replies confirm connectivity. Enhanced connectivity returned only after switching from Bridged to NAT in the thread [Elektroda, Neoprene, post #18131601]

Bridged vs NAT: which networking mode is safer for Kali?

NAT reduces exposure by hiding the guest IP behind the host, yet still allows outbound apt traffic. Bridged exposes the VM directly to the LAN; use it only when you need inbound connections [VMware KB, 2023].

I have vmware-install.pl in the folder, but bash says “No such file or directory”. Why?

You are likely not in the correct directory or the script lacks execute permission. Use cd /path/to/folder && sudo chmod +x vmware-install.pl && sudo ./vmware-install.pl [Elektroda, Neoprene, post #18131601]

What permissions should sources.list carry?

Set owner root:root and mode 644: sudo chown root:root /etc/apt/sources.list && sudo chmod 644 /etc/apt/sources.list [Debian Handbook, 2023]. Edge-case: wrong ownership (e.g., user:user) stops automatic updates.

What happens if I keep using the old “sana” repository?

The mirror was frozen in 2016; 100 % of new packages and security fixes are absent. Apt will return 404 errors or empty indexes, blocking installs [Kali Archives, 2024].

How large is open-vm-tools-desktop and will it slow my download?

The .deb pulls about 50 MB; at 25 Mbps it downloads in ~20 s, consuming <1 % of a 5 GB monthly cap [Kali Package Stats, 2024].

Can I use Synaptic or Aptitude instead of the terminal?

Yes. Kali images with Xfce include Synaptic; launch it with sudo rights. It respects the same sources.list and provides a GUI for package tasks [Kali Docs, 2024].
Generated by the language model.
ADVERTISEMENT