Score:0

Install .deb package from shared folder on other PC with Windows

tr flag

I have PC with Ubuntu 20.04 LTS and other PC with windows 10. I download repository with "ubuntu-repository.exe". On Windows I have directories with ubuntu repos. This directory:

.
└── rerository
    ├── dists
    │   └── focal
    │       └── main
    │           └── binary-amd64 -> Packages.gz
    ├── pool
        └── main
            ├── a
            └── b
             etc.

I try add in sources.list deb file:/192.168.1.1/repository/ focal main, but sudo apt-get update don't see my repos. How I can install my .deb files?

Terrance avatar
id flag
First, after the `file:` it should be `//`. Also, I think instead of `file:` it should be either `http:` or `https:`.
s1nner avatar
tr flag
I download repo to Ubuntu PC and `deb file:/home/user/soft/repository focal main` work,, but `sudo apt install ***` don't work steel.
Terrance avatar
id flag
Right, because that is local to the system. You are trying to pull from another system that requires the `http://` instead of `file:/`
Score:0
cn flag

I think you need to replace file:/ with http or https. If that isn't the solution, replace file:/ with file:///.

Score:0
tr flag

I setting up IIS FTP server on windows server 2012 r2 and share my repo with ftp, add "svchost.exe" in firewall exception(without it I can't connect to ftp-server). On Ubuntu 20.04 LTS add setting through terminal echo 'Dir::Bin::Metods::ftp "ftp"; ' | sudo tee -a /etc/apt/apt.conf.d/local-ftp. It command add file local-ftp on apt settings(/etc/apt/apt.conf.d) else you can't update repo from ftp. And final add deb [tusted=yes] ftp://ip.ip.ip.ip/ focal main universe multiverse restricted in source.list file. Then I edit file Release in repo root directory. I delete all except main/binary-amd64(and other like this). After all this sudo apt update work. And possible apt install synaptic(gluster and other) with all depence installing. Sory for my bad english. It's work!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.