|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
OpenBSD timed out connection
Trying to add kde-baseapps4, and in general connection is timed out after a time, pressing Ctrl-C, and again using pkg_add program name works sometimes.
But for packages that are relatively bigger, there is no way to install them, I've tried up to ten times, Ctrl-C, pkg_add..., always the same issue. I have read the manual page for pkg_add, and it said that packages should be downloaded locally and after that, installed manually, simply using pkg_add program_name into a directory of the computer. But it does not work anyway! Anybody have an idea how to install packages manually after they were downloaded? Thank you for your help. |
|
|||
The nearest to me...
The mirror I'm using is the most near by to me. Thanks. I'll try to change to other site and test.
|
|
||||
If trying a different mirror does not work, and the OP wants to download the package, and install manually:
I just manually installed a small package " sl ", to confirm, it does work, there are a couple of ways to approach this. 1. https://www.openbsd.org/faq/faq15.html You could use the method they show, Code:
# export PKG_PATH= I did not actually try that method. What I did, first I downloaded the package, in my case I just used "sl" , it is a small package, easy to install I have no desire to try installing all the kde package, but any way: After I downloaded it, I edited my /etc/installurl so that it looks like this: Code:
file://home/garry/Downloads Code:
parrot$ pwd /home/garry/Downloads/6.5/packages-stable/amd64 Code:
parrot$ pwd /home/garry/Downloads/6.5/packages-stable/amd64 parrot$ ls sl-5.02.tgz Contrary to Quote:
======= edited ==== Years back, I had trouble with one package, no longer remember which one, but any way, it would install fine, up to a point, and for some reason, 1 dependency was not installing, and would bring the install process to a halt, so that is what I did, I downloaded the 1 file that was causing a problem, installed it manually, after that the rest of the package installed just fine using a mirror. ======== edited again ==== This works as well: Code:
parrot# export PKG_PATH=file://home/garry/Downloads parrot# pkg_add -v sl-5.02.tgz sl-5.02: ok Extracted 29960 from 30207 parrot#
__________________
My best friends are parrots Last edited by PapaParrot; 9th August 2019 at 02:25 AM. Reason: posted same time as jggimi, add comment |
|
|||
Thank you...
Quote:
If a resume using pkg_add program_name... sometimes finish all right, but others stop again. When the package installation is completed, indicates that partial installation was deleted from the data base. Last edited by ocicat; 9th August 2019 at 05:53 PM. Reason: Added missing [/QUOTE] tag. |
|
|||
So far, all you've explained is a network error on your side.
Change the mirror you're getting packages from. The magic file is /etc/installurl. |
|
|||
True, but I see no evidence that either were used in this scenario.
|
|
||||
Quote:
It seems clear, the package : kde-baseapps4 is one that you are having problems with ? What version ? and What version of OpenBsd ? Please show us the output: Code:
sysctl kern.version Quote:
The only problem I ever have, and it is not at all the fault of OpenBsd, my ISP (Internet Service Provider), is very poor, and slow, some times I also get timeouts, and just have to try again later. I generally try to avoid large packages when possible because of this. A alternative would be to go some where, that has a good fast ISP, and download the entire package, put it on a usb device, or something. Then install it manually, as mentioned earlier. If you have a bad internet connection, yes it could make installing large packages difficult, but this is not a fault of OpenBsd, it is the internet connection. Fortunately, it is relatively simple to install a package from a storage device, manually. When necessary I use a internet cafe, to do the downloads, or the internet connection at a friends office, (actually Ex employeer, where I used to work). Quote:
__________________
My best friends are parrots |
|
|||
MY OpenBSD is the last version...
OpenBSD 6.5... the last version.
My internet is slow, I know. But I found a way to install packages that end up timed out. I opened two text consoles, in one I have PKG_PATH=OpenBSD_site_of_packages, in other I have PKG_PATH=/root When a packasge is timed out, I press Ctrl-C, go to the second console, I downloaded, asnd then installed wia pkg_src. But still is a long and heavy work to install, in example, kde4. |
|
||||
I decided to try with kde-baseapps-4.14.3p8.tgz on a OpenBsd6.5 VM, wow, it really is a big package, over a hour, it actually seems to be hung here:
Code:
kde-baseapps-4.14.3p8:adwaita-icon-theme-3.30.1 (extracting)|****************************** | 87% Sometime back, as I mentioned, on another package, I had a similar problem, and it would "hang", stop installing at a certain point,.. so I downloaded the specific package , only the one where it hung, for example in this case it is the: Code:
kde-baseapps-4.14.3p8:adwaita-icon-theme-3.30.1
__________________
My best friends are parrots |
|
||||
I decided to abort and this is what I get:
Code:
kde-baseapps-4.14.3p8:adwaita-icon-theme-3.30.1 (extracting)|****************************** | 87% Interrupted kde-baseapps-4.14.3p8:adwaita-icon-theme-3.30.1Adjusting sha for /usr/local/share/icons/Adwaita/cursors/pkg.x7m6aaQ1Dc from D+v4gLZ9ph1vfjiEpcthG9UEGI5A94EKrtrE7ldm0jU= to EFNdMX2PhCp2/GgmrcLWEDMem2cfaU/vWTLnqLmmBCY= Running tags: ok New and changed readme(s): /usr/local/share/doc/pkg-readmes/ffmpeg /usr/local/share/doc/pkg-readmes/gnupg /usr/local/share/doc/pkg-readmes/gtk+2 /usr/local/share/doc/pkg-readmes/sdl2 Fatal error: Caught SIGINT. Installation of adwaita-icon-theme-3.30.1 failed, partial installation recorded as partial-adwaita-icon-theme-3.30.1 at /usr/libdata/perl5/OpenBSD/PkgAdd.pm line 796. =====edit====== So I try again, this time "kde-baseapps-4.14.3p8:adwaita-icon-theme-3.30.1" installs ok: Code:
pkg_add kde-baseapps-4.14.3p8.tgz quirks-3.124 signed on 2019-04-15T12:10:16Z kde-baseapps-4.14.3p8:upower-0.99.9p0: ok kde-baseapps-4.14.3p8:mozilla-dicts-en-GB-1.3p1: ok kde-baseapps-4.14.3p8:hunspell-1.6.2p0: ok kde-baseapps-4.14.3p8:enchant-1.6.1p1: ok kde-baseapps-4.14.3p8:exiv2-0.26p0v0: ok kde-baseapps-4.14.3p8:clucene-core-2.3.3.4p3: ok kde-baseapps-4.14.3p8:libtheora-1.1.1p3: ok kde-baseapps-4.14.3p8:lz4-1.8.3: ok kde-baseapps-4.14.3p8:zstd-1.3.8: ok kde-baseapps-4.14.3p8:libarchive-3.3.3: ok kde-baseapps-4.14.3p8:partial-adwaita-icon-theme-3.30.1->adwaita-icon-theme-3.30.1: ok kde-baseapps-4.14.3p8:at-spi2-core-2.30.1p0: ok kde-baseapps-4.14.3p8:at-spi2-atk-2.30.1: ok kde-baseapps-4.14.3p8:gtk+3-3.24.7: ok kde-baseapps-4.14.3p8:gcr-3.28.1p0: ok kde-baseapps-4.14.3p8:gvfs-1.38.2: ok =====
__________________
My best friends are parrots Last edited by PapaParrot; 9th August 2019 at 08:19 PM. |
|
||||
Finally, but it fails to install:
Code:
Can't install kde-baseapps-4.14.3p8 because of conflicts (kdebase-3.5.10p59) Running tags|********************************************** | 83%Error in file "/usr/local/share/applications/kde/kfontview.desktop": "fonts/package" is an invalid MIME type ("fonts" is an unregistered media type) Error in file "/usr/local/share/applications/kde/printers.desktop": "print/manager" is an invalid MIME type ("print" is an unregistered media type) Running tags: ok Read shared items: ok The following new rcscripts were installed: /etc/rc.d/nmbd /etc/rc.d/samba /etc/rc.d/samba_ad_dc /etc/rc.d/smbd /etc/rc.d/winbindd See rcctl(8) for details. New and changed readme(s): /usr/local/share/doc/pkg-readmes/consolekit2 /usr/local/share/doc/pkg-readmes/gtk+3 /usr/local/share/doc/pkg-readmes/samba /usr/local/share/doc/pkg-readmes/upower --- +hunspell-1.6.2p0 ------------------- Install mozilla dictionaries for extra hunspell languages. e.g. # pkg_add mozilla-dicts-ca --- +kde-runtime-4.14.3p15 ------------------- KDE apps actively use shared memory and open many file descriptors. So you'll need to tweak sysctl values like that: sysctl kern.shminfo.shmall=51200 kern.shminfo.shmmni=1024 sysctl kern.maxfiles=20000 Remember to save those values in /etc/sysctl.conf after successful testing. Per-process open files limit should be at least 4000 due to the kded4 file monitoring technique. --- +nepomuk-core-4.14.3p3 ------------------- If you want to use Nepomuk, install Virtuoso (databases/virtuoso). --- +python-2.7.16 ------------------- If you want to use this package as your default system python, as root create symbolic links like so (overwriting any previous default): ln -sf /usr/local/bin/python2.7 /usr/local/bin/python ln -sf /usr/local/bin/python2.7-2to3 /usr/local/bin/2to3 ln -sf /usr/local/bin/python2.7-config /usr/local/bin/python-config ln -sf /usr/local/bin/pydoc2.7 /usr/local/bin/pydoc --- kde-baseapps-4.14.3p8 ------------------- Can't install kde-baseapps-4.14.3p8: conflicts Couldn't install kde-baseapps-4.14.3p8 parrotvm#
__________________
My best friends are parrots |
|
||||
Ok, sorry about that, interesting and I probably should have waited until we had more details from the OP, but as far as that goes, we don't know what version of OpenBsd they are actually using, and maybe they do have KDE3 installed ?
All though like ibara said, It probably is a network issue any way. I did manage to get KDE3 working though, but I suppose that is another topic, again I apologize if I caused any confusion. The main point though, we need better details from the OP, as I demonstrated,... and quite quickly you spotted why I could not install the kde-baseapps-4.14.3p8 , I still was confused on that. Thanks.
__________________
My best friends are parrots |
|
||||
Well, that is good , you managed to get it installed. Yes, it is a very large package. I tried again, but on a new VM, with out KDE3. I ran into some other problems, apparently one needs to be sure the
Code:
/dev/sd0h /usr/local and at the end on the installation, it failed, telling me there was not enough space. ===edited==== out of date
__________________
My best friends are parrots Last edited by PapaParrot; 11th August 2019 at 03:13 PM. |
|
||||
Thanks, and I edited to remove it, sorry
__________________
My best friends are parrots |
|
|||
From pkg_add(1):
Quote:
# pkg_add -n to fetch all packages before you actually install them.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenBSD 4.5 and wireless connection | sd1965 | OpenBSD Installation and Upgrading | 5 | 17th July 2011 02:57 AM |
automatic or timed suspend on battery | asemisldkfj | OpenBSD General | 3 | 25th May 2011 11:55 PM |
Working dial-up connection - No Client Connection | vigol | FreeBSD General | 5 | 22nd November 2009 10:59 PM |
Openbsd 4.5 network connection timeout | andrewm | OpenBSD General | 4 | 11th September 2009 02:32 AM |
Hard drive error on boot 'READ_DMA timed out' | map7 | FreeBSD General | 7 | 19th November 2008 06:07 AM |