Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
2
votes
1
answers
40
views
How to obtain RHEL 8 repo that contain ceph-fuse and install it?
We have planned a ceph upgrade to reef 18.2.7, and it says that Client Kernel drivers older than in Kernel 5.4 are not supported. There is 1 RHEL 8 machine with Kernel 4.18. I tried to mount cephfs anyway, and it really doesn't work. I get the message: ```mount: /mnt: wrong fs type, bad option, bad...
We have planned a ceph upgrade to reef 18.2.7, and it says that Client Kernel drivers older than in Kernel 5.4 are not supported.
There is 1 RHEL 8 machine with Kernel 4.18. I tried to mount cephfs anyway, and it really doesn't work.
I get the message:
: /mnt: wrong fs type, bad option, bad superblock on 192.168.22.101,192.168.22.100,192.168.22.102:/backup, missing codepage or helper program, or other error.
So, the only option except upgrade to RHEL 9 (this machine is not in my dpt. it is some Bacula backup machine), is to use **ceph-fuse**.
However, my colleague wasn't able to install it either with repo rhceph-5-tools-for-rhel-8-x86_64-rpms
or with repo 6-tools-for-rhel-8-x86_64-rpms
. Actually, this is described here: https://docs.redhat.com/en/documentation/red_hat_ceph_storage/8/html-single/file_system_guide/index#mounting-the-ceph-file-system-as-a-fuse-client_fs , but it seems that this repo doesn't exist.
I tried with ceph-fuse
rpm downloaded from https://download.ceph.com/ , but there are so many missing dependencies, that this is not feasible.
Does anyone know a method to install ceph-fuse on RHEL 8?
dotokija
(133 rep)
Jul 18, 2025, 02:24 PM
• Last activity: Jul 18, 2025, 02:45 PM
2
votes
1
answers
1221
views
What is the equivalent of 𝚊𝚙𝚝 𝚕𝚒𝚜𝚝 ‑‑𝚒𝚗𝚜𝚝𝚊𝚕𝚕𝚎𝚍 on the FreeBSD operating system?
I have just started using FreeBSD again after some years of staying away from *BSD based systems (with the exception of macOS). I am using FreeBSD versions 11.0 and 12.0. To manage packages, `pkg` seems rather intuitive, and in fact the commands are pretty similar being `pkg update`, `pkg upgrade`,...
I have just started using FreeBSD again after some years of staying away from *BSD based systems (with the exception of macOS). I am using FreeBSD versions 11.0 and 12.0.
To manage packages,
pkg
seems rather intuitive, and in fact the commands are pretty similar being pkg update
, pkg upgrade
, pkg search
and pkg autoremove
.
However, what is the equivalent of apt list ‑‑installed
or dpkg ‑‑list | grep '^.i'
for having a list of the already installed packages? I somewhat remember and have found a page detailing it is pkg_info
, however the command is not working.
Rui F Ribeiro
(57882 rep)
Apr 24, 2017, 12:47 PM
• Last activity: Nov 18, 2024, 03:17 PM
1
votes
2
answers
3627
views
Solaris 11.3.1 upgraded to 11.4.0 failing
trying to upgrade from Solaris 11.3.1 to 11.4.0 and I keep running into a dependency problem that for the life of me I can't get past. I'm guessing it needs a package that isn't available inside the release repo (11.4.0). Maybe the package it needs to upgrade first is available in a 11.3 SRU? I don'...
trying to upgrade from Solaris 11.3.1 to 11.4.0 and I keep running into a dependency problem that for the life of me I can't get past.
I'm guessing it needs a package that isn't available inside the release repo (11.4.0). Maybe the package it needs to upgrade first is available in a 11.3 SRU?
I don't have a support contract so don't have access to the support repo (I'm a student and it's a lab box I am learning on).
Any ideas or suggestions?
**beadm list**
root@server:~# beadm list
BE Flags Mountpoint Space Policy Created
-- ----- ---------- ----- ------ -------
s11.2-12.6 - - 26.01M static 2015-08-02 10:50
s11.3.1 NR - 26.41M static 2019-07-18 10:36
**pkg info**
root@server:~# pkg info entire
Name: entire
Summary: Incorporation to lock all system packages to the same build
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11 (Oracle Solaris 11.3.1.5.3)
Build Release: 5.11
Branch: 0.175.3.1.0.5.3
Packaging Date: August 1, 2018 01:01:46 AM
Size: 5.46 kB
FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.3.1.0.5.3:20180801T010146Z
root@server:~# pkg info -r entire
Name: entire
Summary: Incorporation to lock all system packages to the same build
Description: This package constrains system package versions to the same
build. WARNING: Proper system update and correct package
selection depend on the presence of this incorporation.
Removing this package will result in an unsupported system.
Category: Meta Packages/Incorporations
State: Not installed
Publisher: solaris
Version: 11.4 (Oracle Solaris 11.4.0.0.1.15.0)
Build Release: 5.11
Branch: 11.4.0.0.1.15.0
Packaging Date: August 17, 2018 12:42:03 AM
Size: 2.53 kB
FMRI: pkg://solaris/entire@11.4,5.11-11.4.0.0.1.15.0:20180817T004203Z
**pkg publisher**
root@server:~# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release/
**pkg update**
root@server:~# pkg update -nv --accept --be-name=s11.4.0 entire@11.4-11.4.0.0.1.15.0
Creating Plan (Solver setup): \
pkg update: No matching version of entire can be installed:
Reject: pkg://solaris/entire@11.4-11.4.0.0.1.15.0
Reason: No version matching 'require' dependency consolidation/X/X-incorporation can be installed
Reason: No version matching 'require' dependency consolidation/ips/ips-incorporation can be installed
**pkg list**
root@server:~# pkg list -af entire
NAME (PUBLISHER) VERSION IFO
entire 11.4-11.4.0.0.1.15.0 ---
entire 0.5.11-0.175.3.1.0.5.3 i--
entire 0.5.11-0.175.3.1.0.5.2 ---
entire 0.5.11-0.175.3.1.0.5.1 ---
entire 0.5.11-0.175.3.1.0.5.0 ---
root@server:~# pkg list -af consolidation/ips/ips-incorporation
NAME (PUBLISHER) VERSION IFO
consolidation/ips/ips-incorporation 11.4-11.4.0.0.1.14.0 ---
consolidation/ips/ips-incorporation 0.5.11-0.175.3.0.0.26.0 i--
root@server:~# pkg list -af consolidation/X/X-incorporation
NAME (PUBLISHER) VERSION IFO
consolidation/X/X-incorporation 11.4-11.4.0.0.1.14.0 ---
consolidation/X/X-incorporation 0.5.11-0.175.3.1.0.2.1489 i--
root@server:~# pkg update -nv consolidation/ips/ips-incorporation
No updates available for this image.
root@server:~# pkg update -nv consolidation/X/X-incorporation
No updates available for this image.
**pkg info**
root@server:~# pkg info consolidation/X/X-incorporation
Name: consolidation/X/X-incorporation
Summary: X consolidation incorporation
Description: This incorporation constrains packages from the X Window System
consolidation.
Category: Meta Packages/Incorporations
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.3.1.0.2.1489
Packaging Date: September 21, 2015 07:18:42 PM
Size: 5.53 kB
FMRI: pkg://solaris/consolidation/X/X-incorporation@0.5.11,5.11-0.175.3.1.0.2.1489:20150921T191842Z
root@server:~# pkg info consolidation/ips/ips-incorporation
Name: consolidation/ips/ips-incorporation
Summary: Image Packaging System consolidation incorporation
Description: This incorporation constrains packages from the Image Packaging
System consolidation.
Category: System/Packaging
State: Installed
Publisher: solaris
Version: 0.5.11
Build Release: 5.11
Branch: 0.175.3.0.0.26.0
Packaging Date: July 5, 2015 08:34:35 PM
Size: 5.46 kB
FMRI: pkg://solaris/consolidation/ips/ips-incorporation@0.5.11,5.11-0.175.3.0.0.26.0:20150705T203435
root@server:~# pkg info -r consolidation/X/X-incorporation
Name: consolidation/X/X-incorporation
Summary: userland consolidation incorporation (consolidation/X/X-incorporation)
Description: This incorporation constrains packages from the userland
consolidation
Category: Meta Packages/Incorporations
State: Not installed
Publisher: solaris
Version: 11.4
Build Release: 5.11
Branch: 11.4.0.0.1.14.0
Packaging Date: August 14, 2018 03:31:56 PM
Size: 2.52 kB
FMRI: pkg://solaris/consolidation/X/X-incorporation@11.4,5.11-11.4.0.0.1.14.0:20180814T153156Z
root@server:~# pkg info -r consolidation/ips/ips-incorporation
Name: consolidation/ips/ips-incorporation
Summary: Image Packaging System consolidation incorporation
Description: This incorporation constrains packages from the Image Packaging
System consolidation.
Category: System/Packaging
State: Not installed
Publisher: solaris
Version: 11.4
Build Release: 5.11
Branch: 11.4.0.0.1.14.0
Packaging Date: August 14, 2018 02:50:51 PM
Size: 2.52 kB
FMRI: pkg://solaris/consolidation/ips/ips-incorporation@11.4,5.11-11.4.0.0.1.14.0:20180814T145051Z
ohnoes4k
(11 rep)
Jul 18, 2019, 04:06 AM
• Last activity: Nov 2, 2024, 05:17 PM
12
votes
3
answers
8491
views
How to list installed files in FreeBSD pkg?
Is there a way to list the installed files with `pkg` for a certain package?
Is there a way to list the installed files with
pkg
for a certain package?
viuser
(2724 rep)
Apr 24, 2018, 01:31 AM
• Last activity: Jun 20, 2024, 09:32 AM
-1
votes
1
answers
822
views
How can I install pip on FreeBSD?
I was trying to install python and pip on my FreeBSD 15.0 server. It seems like I've successfully installed python. Now I have both Python3.9 and Python 3.11. However, I can't find and package called "pip" or "python-pip". I've also tried package name "python311-pip", "python3-pip" and "py311-pip"....
I was trying to install python and pip on my FreeBSD 15.0 server. It seems like I've successfully installed python. Now I have both Python3.9 and Python 3.11. However, I can't find and package called "pip" or "python-pip". I've also tried package name "python311-pip", "python3-pip" and "py311-pip".
How can I install pip?
Gordon Zhang
(9 rep)
Jun 16, 2024, 01:03 AM
• Last activity: Jun 16, 2024, 03:42 AM
0
votes
1
answers
137
views
Recommended and alternate dependencies in FreeBSD .pkg
A FreeBSD package typically specifies dependencies in its manifest as follows: deps: # python39, version 3.9 or higher python39: {origin: lang/python39, version: 3.9} # bind-tools, any version bind-tools: {origin: dns/bind-tools} This will cause the package manager to check if both dependencies in t...
A FreeBSD package typically specifies dependencies in its manifest as follows:
deps:
# python39, version 3.9 or higher
python39: {origin: lang/python39, version: 3.9}
# bind-tools, any version
bind-tools: {origin: dns/bind-tools}
This will cause the package manager to check if both dependencies in the desired version are present and, if they are missing, add them or abort with an error unless told to ignore dependencies.
Debian-style packages (.deb) on Linux, on the other hand, offer features such as:
* Recommendations: these indicate to the package manager that only certain features of the software depend on packages listed as recommended (whereas the package is mostly useless if a dependency is missing). Depending on how the package manager is configured, recommendations can be treated as dependencies or the package can be installed without them.
* Alternatives: for example, a package can depend on
curl | wget
, in which case the presence of either package alone will satisfy that particular dependency, as the software finds out at run-time which of the two is installed and works with whatever is available.
Does .pkg offer these features as well? How would these be specified in the manifest?
user149408
(1515 rep)
Apr 17, 2024, 04:52 PM
• Last activity: Apr 19, 2024, 09:30 AM
1
votes
1
answers
1642
views
Solaris 11 Not Able To Install PKG File
I am trying to install a .pkg file on a Solaris 11 Intel machine and am faced with the following error: pkg install: The following pattern(s) did not match any allowable packages. Try using a different matching pattern, or refreshing publisher information: The command I am using to install the packa...
I am trying to install a .pkg file on a Solaris 11 Intel machine and am faced with the following error:
pkg install: The following pattern(s) did not match any allowable packages. Try
using a different matching pattern, or refreshing publisher information:
The command I am using to install the package is:
pkg install
I have set full permissions on the package using chmod 777 and have also run the pkg update command with a reboot.
Does anyone know what the problem here may be?
Help
(97 rep)
Jun 10, 2022, 12:28 PM
• Last activity: Jan 10, 2024, 09:40 PM
0
votes
2
answers
1783
views
Install pkg for FreeBSD 10
I'm getting the following error while trying to install [pkg][1] on FreeBSD 10.4- Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest, please wait... pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/Latest/pkg.txz: Not Found A pre-built version of pkg could no...
I'm getting the following error while trying to install pkg on FreeBSD 10.4-
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest , please wait...
pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/Latest/pkg.txz : Not Found
A pre-built version of pkg could not be found for your system.
Consider changing PACKAGESITE or installing it from ports: 'ports-mgmt/pkg'.
When I try to install it using ports, I get the following error-
set: Illegal option -o pipefail
===> Options unchanged
set: Illegal option -o pipefail
*** Error code 2
Stop.
make[1] : stopped in /data/usr/ports/ports-mgmt/pkg
*** Error code 1
Stop.
make: stopped in /data/usr/ports/ports-mgmt/pkg
Is there any other way to install pkg or change default repo URL to download packages?
Shradha
(109 rep)
May 29, 2022, 07:39 PM
• Last activity: Nov 12, 2023, 05:05 PM
0
votes
1
answers
5338
views
Problem with pkg installation on FreeBSD
If I do `pkg update` I get: Updating FreeBSD repository catalogue... pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/meta.txz: Not Found repository FreeBSD has no meta file, using default settings pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/packagesite.txz: Not Found Unable to update rep...
If I do
pkg update
I get:
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/meta.txz : Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/packagesite.txz : Not Found
Unable to update repository FreeBSD
Despite the fact that if I go to http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/
I can see meta.txz and packagesize.txz.
I did curl of http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/ and it shows
404 Not Found
404 Not Found
nginx Why is this happening? EDIT: The output offetch -o - -vv http://pkg.FreeBSD.org/freebsd:9:x86:32/latest inside the jail
/
scheme: [http]
user: []
password: []
host: [pkg.FreeBSD.org]
port:
document: [/freebsd:9:x86:32/latest/]
---> pkg.FreeBSD.org:80
looking up pkg.FreeBSD.org
connecting to pkg.FreeBSD.org:80
requesting http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/
>>> GET /freebsd:9:x86:32/latest/ HTTP/1.1
>>> Host: pkg.FreeBSD.org
>>> User-Agent: fetch libfetch/2.0
>>> Connection: close
>>>
<<< HTTP/1.1 404 Not Found
<<< Server: nginx
<<< Date: Sun, 17 Mar 2019 21:47:44 GMT
<<< Content-Type: text/html
<<< Content-Length: 162
<<< Connection: close
content length:
<<<
offset 0, length -1, size -1, clength 162
404 Not Found
404 Not Found
nginx
fetch: http://pkg.FreeBSD.org/freebsd:9:x86:32/latest/ : Not Found
Ariel Baron
(101 rep)
Mar 11, 2019, 10:30 PM
• Last activity: Apr 20, 2023, 12:17 PM
1
votes
1
answers
1177
views
How to install a package in Solaris 11 from file?
How to install a package in Solaris 11 from file (not from the package repository)? I am trying to install a `.pkg` file on a Solaris 11 SPARC machine, however, I get errors: ```shell # pkg install mysql-connector-odbc-8.0.30-solaris11-sparc-64bit.pkg pkg install: The following pattern(s) did not ma...
How to install a package in Solaris 11 from file (not from the package repository)?
I am trying to install a
.pkg
file on a Solaris 11 SPARC machine, however, I get errors:
# pkg install mysql-connector-odbc-8.0.30-solaris11-sparc-64bit.pkg
pkg install: The following pattern(s) did not match any allowable packages. Try
using a different matching pattern, or refreshing publisher information:
mysql-connector-odbc-8.0.30-solaris11-sparc-64bit.pkg
The file mysql-connector-odbc-8.0.30-solaris11-sparc-64bit.pkg
is already copied to the SPARC machine.
How may I install a package file from disk?
eliot
(31 rep)
Sep 30, 2022, 11:50 AM
• Last activity: Feb 12, 2023, 12:53 PM
6
votes
1
answers
10830
views
What is the equivalent packages build-essential and linux-headers-<xxxx> in alpine?
I want to build kernel modules in Alpine; I know how to do it in Ubuntu. In Ubuntu, I used to install kernel headers by running: ``` apt install -y build-essential linux-headers-$(uname -r) ``` What is the equivalent in Alpine? I searched on the web and [Github user progrium wrote a comment][1] that...
I want to build kernel modules in Alpine; I know how to do it in Ubuntu.
In Ubuntu, I used to install kernel headers by running:
apt install -y build-essential linux-headers-$(uname -r)
What is the equivalent in Alpine?
I searched on the web and Github user progrium wrote a comment that the equivalent for build-essential
is build-base
, but what about the linux-headers-$(uname -r)
?
E235
(393 rep)
Feb 9, 2022, 06:47 AM
• Last activity: Nov 6, 2022, 03:38 PM
5
votes
2
answers
148
views
What is the pkg analog of "apt show"?
`pkg info` displays full information on the *installed* packages. How do I get the same output for packages not yet installed? On Ubuntu, `apt show` does exactly that. **ETA**: An example of what I'm looking for, taken from Ubuntu. ~~~ $ apt show sudoku Package: sudoku Version: 1.0.5-2build2 Priorit...
pkg info
displays full information on the *installed* packages. How do I get the same output for packages not yet installed? On Ubuntu, apt show
does exactly that.
**ETA**: An example of what I'm looking for, taken from Ubuntu.
~~~
$ apt show sudoku
Package: sudoku
Version: 1.0.5-2build2
Priority: optional
Section: universe/games
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Peter Spiess-Knafl
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 124 kB
Depends: libc6 (>= 2.4), libncurses5 (>= 6), libtinfo5 (>= 6)
Homepage: https://github.com/cinemast/sudoku
Download-Size: 41.9 kB
APT-Sources: http://ru.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
Description: console based sudoku
This sudoku puzzle generator/solver features:
* character based (curses) interface;
* cross-platform (Minix, Unix, Windows) with full source code (ANSI C);
* generates hints upon request;
* classification of board difficulty (very easy, easy, medium, hard or
fiendish);
* generation of new boards;
* easy entry of boards published in newspapers, Internet, ...;
* multiple output formats (text, csv, HTML, PostScript).
~~~
sigil
(177 rep)
Oct 16, 2019, 07:30 PM
• Last activity: Sep 13, 2022, 11:13 AM
5
votes
1
answers
6974
views
Change between `quarterly` and `latest` package set used by `pkg` tool in FreeBSD
The `pkg` tool in FreeBSD is usually set to draw upon either the `quarterly` or `latest` package set. The `latest` set may churn more often with updates, while the `quarterly` is meant to be more stable but not the very latest † . ➥ How can I switch from one to the other? ---------- † Or [maybe not]...
The
pkg
tool in FreeBSD is usually set to draw upon either the quarterly
or latest
package set. The latest
set may churn more often with updates, while the quarterly
is meant to be more stable but not the very latest†.
➥ How can I switch from one to the other?
----------
† Or maybe not ?
Basil Bourque
(1671 rep)
Nov 25, 2018, 06:44 AM
• Last activity: Jun 21, 2022, 09:47 AM
0
votes
1
answers
818
views
rsnapshot.conf - reducing verbose parameter not having the desired effect?
TL;DR Is there some configuration for rsnapshot (see versions below) that would allow me to restrict output to the shell commands, errors and start/finish notifications generated by rsnapshot itself, while causing rsync to generate and record the desired level of detail *only* in the rsync log file?...
TL;DR
Is there some configuration for rsnapshot (see versions below) that would allow me to restrict output to the shell commands, errors and start/finish notifications generated by rsnapshot itself, while causing rsync to generate and record the desired level of detail *only* in the rsync log file? Or put more succinctly, can I make the results of rsnapshot output match the descriptions of verbosity in the rsnapshot config file?
If not, is there an rsnapshot community that takes feature requests?
Just the TL part...
It appears after some troubleshooting (see below) that my particular combination of rsnapshot and rsync no longer works as it did for the previous several years. Specifically, the output from rsync now shows up in the console output of rsnapshot, regardless of the verbose settings in
rsnapshot.conf
. I have a fresh install of FreeBSD 12.2
freebsd-version
12.2-RELEASE-p10
rsync was installed as part of pkg install rsnapshot
, and rsync -V
shows
rsync version 3.2.3 protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, atimes,
batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
symtimes, no prealloc, stop-at, no crtimes, file-flags
Optimizations:
no SIMD, no asm, openssl-crypto
Checksum list:
xxh128 xxh3 xxh64 (xxhash) md5 md4 none
Compress list:
zstd lz4 zlibx zlib none
current version of rsnapshot is:
# version of rsnapshot
my $VERSION = '1.4.4';
The issue, after posting the original form of this question, and sleeping on it, plus the aforementioned troubleshooting, boils down to this: rsnapshot runs from crontab, and the unnecessary information from rsync appearing in the console output (despite the verbose 1 setting) seems to requires a "wrapper" script to suppress the noise, and then assemble the correct information from the rsnapshot log. This seems like a very error-prone process, and one that is also likely to be very high-maintenance, as upgrades break the duct-tape nature of the workaround.
The least-cost path seems to be to give up on getting any stats information on the effectiveness of the rsync transfer. This allows me to maintain readability for monitoring the success/failure of the rsync, and to easily re-run it when it does fail.
Clearly something has changed, I suspect with rsync (an implicit -v setting?), and if there's some configuration that would allow me to get what I want in the rsnapshot output (only the shell commands, errors and start/finish notifications) while recording the rsync output in the rsync log file, I'd sure love to know about it.
Please keep in mind the rsnapshot regime has been running perfectly since 2018, and only doing a fresh install of FreeBSD 12.2 broke it. The previous rsnapshot regime was running (on the same hardware) on an upgraded FreeBSD 12.1 (started as 10.x). rsync and rsnapshot were originally built separately (in that order) from the FreeBSD 10.x ports, and upgraded regularly since then with portmaster.
This time (as mentioned) I installed rsnapshot with pkg, and let it install rsync (and everything else it neeeded).
rsnapshot.conf changed only in the value of snapshot_root
and a shortened list of backup points.
Here's the output I want (easy-to-process) for the monitoring emails (that is, without all the rsync noise):
Wed Oct 20 21:40:00 PDT 2021
=================================================================
echo 98875 > /var/run/rsnapshot.pid
mv /obo-offsitepool/archives/daily.5/ /obo-offsitepool/archives/daily.6/
mv /obo-offsitepool/archives/daily.4/ /obo-offsitepool/archives/daily.5/
mv /obo-offsitepool/archives/daily.3/ /obo-offsitepool/archives/daily.4/
mv /obo-offsitepool/archives/daily.2/ /obo-offsitepool/archives/daily.3/
mv /obo-offsitepool/archives/daily.1/ /obo-offsitepool/archives/daily.2/
native_cp_al("/obo-offsitepool/archives/daily.0", \
"/obo-offsitepool/archives/daily.1")
/usr/local/bin/rsync -a --delete --numeric-ids \
/obo-offsitepool/archives/daily.0/ /obo-offsitepool/archives/daily.1/
/usr/local/bin/rsync -rltv --chmod D0770,F0660 --delete --relative \
--delete-excluded --partial --stats --log-file=/var/log/rsync \
--human-readable \
--exclude-from=/obo-offsitepool/archives/.rsnapshot_excludes \
/usr/local/etc/ \
/obo-offsitepool/archives/daily.0/obo-offsite1/local_etc/
/usr/local/bin/rsync -rltv --chmod D0770,F0660 --delete --relative \
--delete-excluded --partial --stats --log-file=/var/log/rsync \
--human-readable \
--exclude-from=/obo-offsitepool/archives/.rsnapshot_excludes \
192.168.18.3::srv330-group/ \
/obo-offsitepool/archives/daily.0/CSO/srv330-group
... etc
Rather than this (keeping in mind there are >20 backup points, many with hundreds of lines of unwanted rsync output):
Tue Oct 26 18:55:00 PDT 2021
=================================================================
echo 97810 > /var/run/rsnapshot.pid
/bin/rm -rf /obopool/archives/daily.6/
mv /obopool/archives/daily.5/ /obopool/archives/daily.6/
mv /obopool/archives/daily.4/ /obopool/archives/daily.5/
mv /obopool/archives/daily.3/ /obopool/archives/daily.4/
mv /obopool/archives/daily.2/ /obopool/archives/daily.3/
mv /obopool/archives/daily.1/ /obopool/archives/daily.2/
native_cp_al("/obopool/archives/daily.0", \
"/obopool/archives/daily.1")
/usr/local/bin/rsync -a --delete --numeric-ids \
/obopool/archives/daily.0/ /obopool/archives/daily.1/
/usr/local/bin/rsync -rltv --chmod D0770,F0660 --delete --relative \
--delete-excluded --partial --stats --log-file=/var/log/rsync \
--human-readable \
--exclude-from=/obopool/archives/.rsnapshot_excludes /usr/local/etc/ \
/obopool/archives/daily.0/offsite1/local_etc/
sending incremental file list
/usr/
deleting usr/local/etc/ssmtp/ssmtp.conf.sample
deleting usr/local/etc/ssmtp/ssmtp.conf.2021-01-20
deleting usr/local/etc/ssmtp/ssmtp.conf
deleting usr/local/etc/ssmtp/revaliases.sample
deleting usr/local/etc/ssmtp/revaliases
deleting usr/local/etc/ssmtp/
deleting usr/local/etc/dma/dma.conf.sample
deleting usr/local/etc/dma/dma.conf
deleting usr/local/etc/dma/auth.conf.sample
deleting usr/local/etc/dma/auth.conf
deleting usr/local/etc/dma/
deleting usr/local/etc/portmaster.rc.sample
deleting usr/local/etc/papersize.letter
deleting usr/local/etc/papersize.a4
deleting usr/local/etc/bash_completion.d/portmaster.sh
deleting usr/local/etc/rc.d/dma_flushq
/usr/local/
/usr/local/etc/
/usr/local/etc/rsnapshot.conf
/usr/local/etc/rsnapshot.conf.default
/usr/local/etc/rsnapshot.conf_2018-09-08
/usr/local/etc/rsnapshot.conf_2019-06-14
/usr/local/etc/rsnapshot.conf_2019-08-23
/usr/local/etc/rsnapshot.conf_2021-02-01
/usr/local/etc/rsnapshot.conf_2021-06-21
/usr/local/etc/screenrc
/usr/local/etc/screenrc.sample
/usr/local/etc/smartd.conf
/usr/local/etc/smartd.conf.sample
/usr/local/etc/smartd_warning.sh
/usr/local/etc/bash_completion.d/
/usr/local/etc/man.d/
/usr/local/etc/man.d/perl5.conf
/usr/local/etc/newsyslog.conf.d/
/usr/local/etc/newsyslog.conf.d/rsnapshot
/usr/local/etc/newsyslog.conf.d/rsync
/usr/local/etc/newsyslog.conf.d/rsyncd
/usr/local/etc/periodic/
/usr/local/etc/periodic/daily/
/usr/local/etc/periodic/daily/smart
/usr/local/etc/periodic/security/
/usr/local/etc/periodic/weekly/
/usr/local/etc/rc.d/
/usr/local/etc/rc.d/rsyncd
/usr/local/etc/rc.d/smartd
/usr/local/etc/rc.d/uuidd
/usr/local/etc/rsync/
/usr/local/etc/rsync/rsyncd.conf
/usr/local/etc/rsync/rsyncd.conf.sample
/usr/local/etc/smartd_warning.d/
/usr/local/etc/ssl/
/usr/local/etc/ssl/cert.pem
Number of files: 46 (reg: 31, dir: 14, link: 1)
Number of created files: 4 (reg: 3, dir: 1)
Number of deleted files: 16 (reg: 14, dir: 2)
Number of regular files transferred: 23
Total file size: 774.49K bytes
Total transferred file size: 735.92K bytes
Literal data: 735.92K bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 738.45K
Total bytes received: 1.10K
sent 738.45K bytes received 1.10K bytes 1.48M bytes/sec
total size is 774.49K speedup is 1.05
/usr/local/bin/rsync -rltv --chmod D0770,F0660 --delete --relative \
--delete-excluded --partial --stats --log-file=/var/log/rsync \
--human-readable \
--exclude-from=/obopool/archives/.rsnapshot_excludes \
192.168.18.3::srv330-group/ \
/obopool/archives/daily.0/CSO/srv330-group
receiving incremental file list
CSO2/Lori/
CSO2/Lori/retail.prices2.docx
Retail/
...etc
**Both of the above email reports were produced from the same rsnapshot.conf file.**
Here's the troubleshooting I've been doing. Test 4 is the best approximation to what I had previously.
1
rsnapshot -v alpha && /root/scripts/marklogs.sh --> using default rsnapshot.conf with
entries for rsync_short_args AND rsync_long_args were actually elided from file (not left with # symbol)
- normal screen output (start notification, shell commands, success notification)
- rsnapshot log shows same as monitor output, no rsync log output
2 Explicitly add in default settings to the rsnapshot.conf file
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed as shown:
rsync_short_args -a
rsync_long_args --delete --numeric-ids --relative --delete-excluded
- same as previous
3 change rsync_long_args
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed from default as shown:
rsync_short_args -a
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test
- console shows expected output (start notification, shell commands, success confirmations)
- rsnapshot log shows same as monitor output
- rsync log shows building file list, files xferred, sent/received/total summary line for each backup point
4 change rsync_short args
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed from default as shown:
rsync_short_args -rlt
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test
- normal console output (start notification, shell commands, success notification)
- rsnapshot log shows same as console
- rsync log shows building file list, files xferred, sent/received/total summary line for each backup point
5 change rsync_short_arg to add -v
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed from default as shown:
rsync_short_args -rltv
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test
- console shows the unexpected (and undesired), given verbose set at 2, rsync output
- rsnapshog log is polluted with rsync output, shows the start notification & shell commands before the noise, then some closing shell commands (touch /obopool/tester/alpha.0/; rm -f /var/run/rsnapshot.pid) then the completion notification
- rsync log adds one line, "total size ..... speedup is .....", to logged info.
6 change loglevel to 1 to see effect on rsnapshot log
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed from default as shown:
loglevel 1
rsync_short_args -rltv
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test
- console shows same polluted output (rsnapshot shell commands with rsync data)
- rsnapshot log received no ouput
- rsync log shows same (correct) output as previous execution
7 change verbose to 1 (quiet) in rsnapshot.conf
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed as shown:
verbose 1
loglevel 1
rsync_short_args -rltv
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test
- console - no change to output from test 6
- rsnapshot log received no ouput (expected with loglevel 1)
- rsync log shows expected output (same as previous)
8 set loglevel to 2 to verify effect on rsnapshot log
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed as shown:
verbose 1
loglevel 2
rsync_short_args -rltv
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test
- console - no change
- rshapshot log shows only start and completion notices (no shell commands). One assumes errors would show up.
- rsync log shows expected output
9 variation on 4: default verbose/log level - no -v on rsync_short_args, and add --stats to rsync long args
rm -rf /obopool/tester/alpha* && rsnapshot -v alpha && /root/scripts/marklogs.sh #--> rsnapshot.conf modifed from default as shown:
rsync_short_args -rlt
rsync_long_args --chmod D0770,F0660 --delete --relative --delete-excluded --partial --log-file=/var/log/rsync-test --stats
- console has stats (rsync) information mixed in with correct output (start notification, shell commands, success confirmations)
- rshapshot log has the same issues as console: stats output mixed in with expected output (start notification, shell commands, success confirmations)
- rsync log shows expected output -- files plus stats.
This is the default (installed) /usr/local/etc/rsnapshot.conf
file, against which all the logged changes were made.
#/usr/local/etc/rsnapshot.conf
#################################################
# rsnapshot.conf - rsnapshot configuration file #
#################################################
# #
# PLEASE BE AWARE OF THE FOLLOWING RULE: #
# #
# This file requires tabs between elements #
# #
#################################################
#######################
# CONFIG FILE VERSION #
#######################
config_version 1.2
snapshot_root /obopool/tester
no_create_root 1
cmd_rm /bin/rm
cmd_rsync /usr/local/bin/rsync
cmd_logger /usr/bin/logger
#cmd_rsnapshot_diff /usr/local/bin/rsnapshot-diff
retain alpha 6
retain beta 7
retain gamma 4
#retain delta 3
# Verbose level, 1 through 5.
# 1 Quiet Print fatal errors only
# 2 Default Print errors and warnings only
# 3 Verbose Show equivalent shell commands being executed
# 4 Extra Verbose Show extra verbose information
# 5 Debug mode Everything
#
verbose 2
# Same as "verbose" above, but controls the amount of data sent to the
# logfile, if one is being used. The default is 3.
#
loglevel 3
logfile /var/log/rsnapshot-test
lockfile /var/run/rsnapshot.pid
###############################
### BACKUP POINTS / SCRIPTS ###
###############################
# LOCALHOST
backup /root/ localhost/
backup /etc/ localhost/
backup /usr/local/ localhost/
backup /var/log/ localhost/
and finally, here's a bit of the perl -V
output
perl -V
Summary of my perl5 (revision 5 version 32 subversion 1) configuration:
Platform:
osname=freebsd
osvers=12.2-release-p10
archname=amd64-freebsd-thread-multi
uname='freebsd 122amd64-quarterly-job-03 12.2-release-p10 freebsd 12.2-release-p10 amd64 '
config_args='-Darchlib=/usr/local/lib/perl5/5.32/mach -Dcc=cc -Dcf_by=mat -Dcf_email=mat@FreeBSD.org -Dcf_time=Sat Jan 23 14:56:40 UTC 2021 -Dinc_version_list=none -Dlibperl=libperl.so.5.32.1 -Dman1dir=/usr/local/lib/perl5/5.32/perl/man/man1 -Dman3dir=/usr/local/lib/perl5/5.32/perl/man/man3 -Dprefix=/usr/local -Dprivlib=/usr/local/lib/perl5/5.32 -Dscriptdir=/usr/local/bin -Dsitearch=/usr/local/lib/perl5/site_perl/mach/5.32 -Dsitelib=/usr/local/lib/perl5/site_perl -Dsiteman1dir=/usr/local/lib/perl5/site_perl/man/man1 -Dsiteman3dir=/usr/local/lib/perl5/site_perl/man/man3 -Dusenm=n -Duseshrplib -sde -Ui_iconv -Ui_malloc -Uinstallusrbinperl -Accflags=-DUSE_THREAD_SAFE_LOCALE -Alddlflags=-L/wrkdirs/usr/ports/lang/perl5.32/work/perl-5.32.1 -L/usr/local/lib/perl5/5.32/mach/CORE -lperl -Dshrpldflags=$(LDDLFLAGS:N-L/wrkdirs/usr/ports/lang/perl5.32/work/perl-5.32.1:N-L/usr/local/lib/perl5/5.32/mach/CORE:N-lperl) -Wl,-soname,$(LIBPERL:R) -Doptimize=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing -Dusedtrace -Ui_gdbm -Dusemultiplicity=y -Duse64bitint -Dusemymalloc=n -Dusethreads=y'
BISI
(136 rep)
Oct 28, 2021, 04:55 AM
• Last activity: Nov 3, 2021, 06:17 PM
0
votes
1
answers
1086
views
FreeBSD 12.1 pkg error: no trusted fingerprints
I have just installed FreeBSD 12.1 and want to give it a try. I used qemu. When I types `pkg`, it started normal bootstrapping. After downloading, it says `No trusted fingerprint found matching package's certificate`. I am confused because there isn't any error _**during**_ the installation process....
I have just installed FreeBSD 12.1 and want to give it a try. I used qemu. When I types
pkg
, it started normal bootstrapping. After downloading, it says No trusted fingerprint found matching package's certificate
. I am confused because there isn't any error _**during**_ the installation process. Any ideas? If needed, I will post the log.
At the time of 2020/01/04 10:19:45, I reopened this question.
Now I have seen this question and this . None of them can help me.
I tried by building pkg in port: /usr/ports/ports-mgmt/pkg, but it couldn't build. Gives error: : jemalloc_arena.c:647: Failed assertion: "nstime_compare(&decay->epoch, &time) <= 0
code2828
(13 rep)
Dec 27, 2019, 04:18 PM
• Last activity: Jun 26, 2021, 01:09 PM
6
votes
6
answers
10042
views
Solaris won't update because ddt-incorporation is using a self-signed certifcate
I'm trying to update my Solaris 11.3 x86 system. The system hasSun/Oracle software on it, including Sun Developer Studio and Sun SSH server. It does not have other software on it, and I don't have anything in `/usr/local`. I'm catching this error: $ sudo pkg update Creating Plan (Package planning: 1...
I'm trying to update my Solaris 11.3 x86 system. The system hasSun/Oracle software on it, including Sun Developer Studio and Sun SSH server. It does not have other software on it, and I don't have anything in
/usr/local
.
I'm catching this error:
$ sudo pkg update
Creating Plan (Package planning: 1/10): -
pkg update: Chain was rooted in an untrusted self-signed certificate.
The package involved is pkg://solaris/consolidation/ddt/ddt-incorporation@18.3.18.7.13,0.5.11-11.4.0.0.1.11.0:20180718T212443Z
According to [Packaging and Delivering Software With the Image Packaging System | Untrusted Self-Signed Certificate](https://docs.oracle.com/cd/E36784_01/html/E36856/glycf.html) , the docs say it is because of using a self-signed OpenSSL certificate. Another similar page is [Troubleshooting Signed Packages](https://docs.oracle.com/cd/E26502_01/html/E21383/signerrs.html) , but it rehashes the earlier page and adds nothing new. The Oracle docs on updating a package is at [Updating a Package](https://docs.oracle.com/cd/E23824_01/html/E21802/gihhp.html#gijkt) but it does not appear to provide the information I need.
The Sun article lacks step-by-step instructions to clear the issue. I'm trying to get Solaris to trust the Sun certificate but I can't get beyond usage errors:
$ sudo pkg set-publisher --approve-ca-cert solaris/consolidation/ddt/ddt-incorporation
pkg set-publisher: requires a publisher name
Usage:
pkg set-publisher [-Ped] [-k ssl_key] [-c ssl_cert]
[-g origin_to_add|--add-origin=origin_to_add ...]
[-G origin_to_remove|--remove-origin=origin_to_remove ...]
....
And:
$ sudo pkg set-publisher --approve-ca-cert solaris/consolidation/ddt/ddt-incorporation sun
pkg set-publisher: Could not find /export/home/jwalton/solaris/consolidation/ddt/ddt-incorporation
I've tried other combinations, like prepending pkg://
and using the full name but the problems persist.
How do I get beyond this error?
user56041
Aug 29, 2018, 03:27 AM
• Last activity: May 26, 2021, 07:23 AM
2
votes
2
answers
875
views
Can't install Golang on Solaris via pkg - release/evaluation dependency
On a new installation of Solaris 11.3 on Sparc hardware, I'm trying to install Golang but am getting the following problem: # pkg install --accept developer/golang Creating Plan (Solver setup): | pkg install: No matching version of developer/golang can be installed: Reject: pkg://solaris/developer/g...
On a new installation of Solaris 11.3 on Sparc hardware, I'm trying to install Golang but am getting the following problem:
# pkg install --accept developer/golang
Creating Plan (Solver setup): |
pkg install: No matching version of developer/golang can be installed:
Reject: pkg://solaris/developer/golang@1.7-5.12.0.0.0.122.0
Reason: No version for 'require' dependency on release/evaluation can be found
I'm new to Solaris but have installed a few other things via pkg and am also familiar with other packaging systems on Linux systems (rpm, apt, etc).
What am I missing?
The missing dependency on release/evaluation doesn't seem to be something I can install, and I've seen a post about 11.4 and FOSS software installs not having nasty "surprises" like 11.3 (which I think I've just found), but I can't see what those surprises are.
NB: if it's relevant, I'm not currently using zones/etc, I'm just treating the system as one machine.
user426445
(123 rep)
Mar 19, 2018, 11:10 PM
• Last activity: Apr 19, 2021, 03:22 PM
1
votes
1
answers
6655
views
Shared object "libarchive.so.7" not found, required by "pkg"
I'm using FreeBSD 12-CURRENT and recently I tried to update my packages with `pkg`. `pkg update` finished successfully, but `pkg upgrade` returned the following error: > Shared object "libarchive.so.5" not found, required by "pkg" What should I do?
I'm using FreeBSD 12-CURRENT and recently I tried to update my packages with
pkg
.
pkg update
finished successfully, but pkg upgrade
returned the following error:
> Shared object "libarchive.so.5" not found, required by "pkg"
What should I do?
Mateusz Piotrowski
(4983 rep)
Jun 5, 2017, 06:33 PM
• Last activity: Jul 17, 2020, 03:03 PM
2
votes
2
answers
4532
views
Cannot install package: kernel missing Linux support
I'm trying to install Dwarf Fortress on my MacBook Air running FreeBSD 11.0 via `pkg install linux-dwarffortress`. Here is some background information: root@machine0:~ # uname -a FreeBSD machine0 11.0-RELEASE-p10 FreeBSD 11.0-RELEASE-p10 #1 r319768: Sat Jun 10 07:03:28 CST 2017 root@machine0:/usr/ob...
I'm trying to install Dwarf Fortress on my MacBook Air running FreeBSD 11.0 via
pkg install linux-dwarffortress
. Here is some background information:
root@machine0:~ # uname -a
FreeBSD machine0 11.0-RELEASE-p10 FreeBSD 11.0-RELEASE-p10 #1 r319768: Sat Jun 10 07:03:28 CST 2017 root@machine0:/usr/obj/usr/src/sys/GENERIC amd64
During the installation, I got a kernel missing Linux support
error:
[1/28] Installing linux-c6-expat-2.0.1_5...
Cannot install package: kernel missing Linux support
pkg: PRE-INSTALL script failed
I just updated my system today, following the instructions of the FreeBSD handbook .
How do I fix this?
nalzok
(431 rep)
Jun 10, 2017, 04:20 PM
• Last activity: Apr 1, 2020, 07:02 AM
5
votes
2
answers
3198
views
FreeBSD, bootstrapping pkg, "pkg-static: sqlite error while executing INSERT OR ROLLBACK INTO pkg_search"
I was trying to install bash on a FreeBSD 10.2 system, see https://unix.stackexchange.com/questions/43475/how-to-install-bash-on-freebsd But the install failed because pkg was trying to fetch from a too-new repository. I then tried following the recipe at https://glasz.org/sheeplog/2017/02/freebsd-u...
I was trying to install bash on a FreeBSD 10.2 system, see https://unix.stackexchange.com/questions/43475/how-to-install-bash-on-freebsd
But the install failed because pkg was trying to fetch from a too-new repository.
I then tried following the recipe at https://glasz.org/sheeplog/2017/02/freebsd-usrlocalliblibpkgso3-undefined-symbol-utimensat.html , which several sources said was the right thing to do.
However, part of the recipe involved uninstalling pkg and reinstalling it. That resulted in the following:
# pkg install -y pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from
pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/release_2 , please
wait...
Verifying signature with trusted certificate
pkg.freebsd.org.2013102301... done
pkg-static: warning: database version 34 is newer than libpkg(3)
version 31, but still compatible
pkg-static: sqlite error while executing INSERT OR ROLLBACK INTO
pkg_search(id, name, origin) VALUES (?1, ?2 || '-' || ?3, ?4); in
file pkgdb.c:1542: no such table: pkg_search
And so now I'm stuck. Can anybody tell me how I might recover from this state?
Edward Falk
(2073 rep)
Oct 28, 2018, 08:24 AM
• Last activity: Aug 20, 2019, 10:00 PM
Showing page 1 of 20 total questions