I followed all the steps carefully and still got the same error... I think you have already spent a lot of time helping me and I thank you for that. I don't want to be a jerk. I'm going to uninstall/reinstall everything as I feel like this is a much deeper issue.
I don't think you've been a jerk. You've been responsive to requests and polite about it all.
Does it still show Certbot 1.21.0 in the log after a --webroot test?
I think I have something a little different...
2023-07-15 15:47:35,533:DEBUG:urllib3.connectionpool:http://localhost:None "GET /v2/connections?snap=certbot&interface=content HTTP/1.1" >
2023-07-15 15:47:35,668:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/snap/certbot/3024/bin/certbot", line 8, in
sys.exit(main())
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/main.py", line 1835, in main
plugins = plugins_disco.PluginsRegistry.find_all()
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 192, in find_all
cls._load_entry_point(entry_point, plugins)
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 199, in _load_entry_point
plugin_ep = PluginEntryPoint(entry_point)
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/_internal/plugins/disco.py", line 40, in init
self.plugin_cls: Type[interfaces.Plugin] = entry_point.load()
File "/snap/certbot/3024/lib/python3.8/site-packages/pkg_resources/init.py", line 2477, in load
return self.resolve()
File "/snap/certbot/3024/lib/python3.8/site-packages/pkg_resources/init.py", line 2483, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot_apache/_internal/entrypoint.py", line 69, in
ENTRYPOINT = get_configurator()
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot_apache/_internal/entrypoint.py", line 46, in get_configurator
os_name, os_version = util.get_os_info()
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/util.py", line 328, in get_os_info
return get_python_os_info(pretty=False)
File "/snap/certbot/3024/lib/python3.8/site-packages/certbot/util.py", line 404, in get_python_os_info
distro_name, distro_version = distro.name() if pretty else distro.id(), distro.version()
File "/snap/certbot/3024/lib/python3.8/site-packages/distro/distro.py", line 280, in id
return _distro.id()
File "/snap/certbot/3024/lib/python3.8/site-packages/distro/distro.py", line 839, in id
distro_id = self.os_release_attr("id")
File "/snap/certbot/3024/lib/python3.8/site-packages/distro/distro.py", line 1057, in os_release_attr
File "/snap/certbot/3024/lib/python3.8/site-packages/distro/distro.py", line 1057, in os_release_attr
return self._os_release_info.get(attribute, "")
File "/snap/certbot/3024/usr/lib/python3.8/functools.py", line 967, in get
val = self.func(instance)
File "/snap/certbot/3024/lib/python3.8/site-packages/distro/distro.py", line 1096, in _os_release_info
return self._parse_os_release_content(release_file)
File "/snap/certbot/3024/lib/python3.8/site-packages/distro/distro.py", line 1117, in _parse_os_release_content
tokens = list(lexer)
File "/snap/certbot/3024/usr/lib/python3.8/shlex.py", line 300, in next
token = self.get_token()
File "/snap/certbot/3024/usr/lib/python3.8/shlex.py", line 109, in get_token
raw = self.read_token()
File "/snap/certbot/3024/usr/lib/python3.8/shlex.py", line 140, in read_token
nextchar = self.instream.read(1)
File "/snap/certbot/3024/bin/../usr/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte
2023-07-15 15:47:35,668:ERROR:certbot._internal.log:An unexpected error occurred:
2023-07-15 15:47:35,669:ERROR:certbot._internal.log:UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start
Yes, the python package is different. Is that the entire log? I'd like to see it from the top.
Also, what does this show
xxd /etc/os-release
Yes, that was the entire log^^
root@ubuntu-s-1vcpu-2gb-intel-fra1-01:/var/certbot# xxd /etc/os-release
00000000: 9904 0d04 54bd 2589 0120 00bf d289 7696 ....T.%.. ....v.
00000010: 95aa da5f df4a 488d a995 9ab2 5c4e e958 ....JH.....\N.X
00000020: 0721 3b5d d82e a611 7a3f 0e74 4f2f b473 .!;]....z?.tO/.s
00000030: 19f4 dba5 4873 6662 8569 4aae 25da b911 ....Hsfb.iJ.%...
00000040: deea 0d88 0971 b4c9 b124 89a1 6bdb 89d9 .....q...$..k...
00000050: 75a5 e123 cab5 0587 d875 57ea 30de e78a u..#.....uW.0...
00000060: fb85 49c0 90a6 e03b 583e 0aab 26b4 8d5b ..I....;X>..&..[
00000070: 69cd 45cc 745d dc14 0980 b762 5200 6bcb i.E.t].....bR.k.
00000080: ef55 89e2 601f 0e4e fec1 619b bbc0 a697 .U....N..a..... 00000090: 3ce3 a5c2 5f4a 3109 f807 9484 426f c4ea <..._J1.....Bo.. 000000a0: eefe 5b28 3f23 e823 ab5c 9178 50f8 3382 ..[(?#.#.\.xP.3. 000000b0: d44a e103 8d32 4b6a 525b 3b6c f05b 6c2e .J...2KjR[;l.[l. 000000c0: 2d03 9e69 3ed3 1aa5 5e7f cb43 541c 0f6e -..i>...^..CT..n 000000d0: f576 fbc1 5413 cd8c f9fe f030 87e6 0b31 .v..T......0...1 000000e0: 4dba 97fa 666a 704e 65b8 e80a 8880 8b70 M...fjpNe......p 000000f0: d4fc 471f b043 c622 8df6 2eb9 0cf0 34f7 ..G..C."......4. 00000100: b0aa f6e2 f044 151a 65d5 134f 71b8 0eb9 .....D..e..Oq... 00000110: 3279 c027 a049 ec84 0d4d c6d1 2b2a ebe3 2y.'.I...M..+*.. 00000120: f4e5 cc5c 59d7 fd4b 2a28 1d72 f413 7af8 ...\Y..K*(.r..z. 00000130: 4448 9192 4b31 f186 4666 c3c6 0809 0371 DH..K1..Ff.....q 00000140: 737b 07e4 630d 0f04 ce85 9154 680e 026a s{..c......Th..j 00000150: ce98 3339 0abc 1c15 e88d 2de3 3162 8cbd ..39......-.1b.. 00000160: 1352 c160 10e1 faea 707c f9ec c979 6547 .R.....p|...yeG
00000170: 4916 da40 e532 b02e 432f 0054 e822 203a I..@.2..C/.T." :
00000180: 6b6d 1a32 73d8 2d7a db61 2552 2bfb c748 km.2s.-z.a%R+..H
00000190: d800 ab23 608b c6fb 64f6 2642 7446 b69d ...#...d.&BtF.. 000001a0: f0c9 c31f 3443 6ce9 aa95 a0a7 a92d 7263 ....4Cl......-rc 000001b0: e56d d1b9 d9f6 5c9d 410a abf6 c242 de4f .m....\.A....B.O 000001c0: 1ead 1bf4 74db 6dbe 27ec 21f9 987c 52df ....t.m.'.!..|R. 000001d0: abb2 ef06 556f 4fee 6124 2680 7afb ff0e ....UoO.a$&.z... 000001e0: 9726 1eb8 b161 f34d dc0a 5955 4779 39a5 .&...a.M..YUGy9. 000001f0: 637b 654e de85 8dba 579d dce4 706d 539c c{eN....W...pmS. 00000200: a311 c1d5 7e20 b628 6bde c3eb 485b 12bb ....~ .(k...H[.. 00000210: 232f d302 e3c6 193a 3bfe 8e92 8bbd cfab #/.....:;....... 00000220: 6526 a83d cb2c 0b5a ecad 7186 8550 4f1b e&.=.,.Z..q..PO. 00000230: 7ff5 300c ea54 ce6e 9be0 063e 4b1d 4661 ..0..T.n...>K.Fa 00000240: 5ff1 adf8 4a21 23fe f0a3 556f 6835 21d2 _...J!#...Uoh5!. 00000250: 2056 7496 d836 acf9 01ec 85c6 f335 7c2b Vt..6.......5|+ 00000260: d385 61e5 ed11 d77e 48b2 3a9d 912f a6ec ..a....~H.:../.. 00000270: 1a7a a1df 40de 2338 dc76 1ea7 bc52 c0ca .z..@.#8.v...R.. 00000280: e170 bd10 60ba 2bbd eee8 3efe 5bfb 3c97 .p...+...>.[.<.
00000290: e33a d514 9b3f d5e2 d92f 2c1a 0b45 8e5c .:...?.../,..E.
000002a0: 9e73 c041 03b3 ee24 a86a d529 b1da 3608 .s.A...$.j.)..6.
000002b0: 2af8 9fd6 a07c 2ed5 fbcb c4b0 f538 441a *....|.......8D.
000002c0: a9dc 25f1 cf64 62bd 9881 ab04 0e05 5dd5 ..%..db.......].
000002d0: efbe e964 8666 f970 7263 5b0a 3844 ab6e ...d.f.prc[.8D.n
000002e0: 7739 da62 1767 9a7a 2ee5 ea5b 0f32 8820 w9.b.g.z...[.2.
000002f0: c2eb 0b0a 7d85 880e def3 003d bf40 3bb6 ....}......=.@;.
00000300: 9705 5b1e 979b 6c90 a163 5d1a a8b8 38c2 ..[...l..c]...8.
00000310: e9f4 2a43 9e3a 11f7 fc60 3b48 7e1c 5117 ..*C.:...;H~.Q. 00000320: 269d 4b04 514e 664b a715 0b39 7c65 f824 &.K.QNfK...9|e.$ 00000330: 305f 364f 71db 140a e9db 727c e713 4302 0_6Oq.....r|..C. 00000340: fb1b a3e2 e960 514c 60f1 3ab5 eb64 6963 .....QL.:..dic 00000350: d8da 59fd d8e8 7f88 5413 ef66 e85a 09e6 ..Y.....T..f.Z.. 00000360: 5c0b 6021 e272 e1a3 5bc0 6295 ca01 2dbe \.!.r..[.b...-.
00000370: aafe 74b7 7361 aae1 e1fa baea 9500 acde ..t.sa..........
00000380: 822b ca2f 8289 9235 e722 6a82 74da 4563 .+./...5."j.t.Ec
00000390: 0d39 12cc 291f a84f 1bf9 b2ba 193d 96dd .9..)..O.....=..
000003a0: f599 5f86 85b1 a24c 26ee b20e 6aac 25cd ......L&...j.%.
000003b0: ab86 96d2 c327 422c b5ce 5ba6 a699 3d7d .....'B,..[...=}
000003c0: a232 0623 21ae 8e0d 6735 8a8a af9a c087 .2.#!...g5......
000003d0: bd4c 214e 3b3c d67d dc4f f878 1218 25dd .L!N;<.}.O.x..%.
000003e0: c6c1 0166 7333 f77a f54d aa86 110b c44a ...fs3.z.M.....J
000003f0: 092f ae2d c4a4 a91c 3a0b 348b 6e9e 9ef4 ./.-....:.4.n...
00000400: af0d aefa 65da d6c8 eb5c af00 1101 0001 ....e..........
00000410: b451 5468 6520 4170 6163 6865 2053 6f66 .QThe Apache Sof
00000420: 7477 6172 6520 466f 756e 6461 7469 6f6e tware Foundation
00000430: 2028 5061 636b 6167 6520 7265 706f 7369 (Package reposi
00000440: 746f 7279 2073 6967 6e69 6e67 206b 6579 tory signing key
00000450: 2920 3c72 6f6f 7440 6170 6163 6865 2e6f ) <root@apache.o
00000460: 7267 3e89 0437 0413 010a 0021 0502 54bd rg>..7.....!..T.
00000470: 2589 021b 0305 0b09 0807 0305 150a 0908 %...............
00000480: 0b05 1602 0301 0002 1e01 0217 8000 0a09 ................
00000490: 100e e62f b37a 0025 8de8 ca1f fd1f 1627 .../.z.%.......'
000004a0: e635 ad39 0afd 6219 9f13 91f1 1089 e419 .5.9..b.........
000004b0: 1134 7fed 6e2d e76b ea54 af29 c388 ac9a .4..n-.k.T.)....
000004c0: da7f 1e40 dd53 5314 dc79 4448 ddc9 5f4b ...@.SS..yDH..K
000004d0: 7e39 c6ca 1f1f 797a e363 ab5d 9978 e9f8 ~9....yz.c.].x..
000004e0: 89fa 42ce c7b7 7c0a 32fc 609b 7d93 9a73 ..B...|.2..}..s 000004f0: 1861 07d9 f515 b82a 3c01 3e40 0aaf 6994 .a.....*<.>@..i. 00000500: f3e0 dc77 2967 e144 5eb8 582a 9b28 8fc0 ...w)g.D^.X*.(.. 00000510: a012 d6fd 9659 ff95 0224 963a bd39 62c3 .....Y...$.:.9b. 00000520: e12b c07e 0ba8 4c45 a295 0bf5 60e8 2693 .+.~..LE.....&.
00000530: 1bf5 1b50 bf67 beaf 4d11 0229 cbc0 fd59 ...P.g..M..)...Y
00000540: fa8d c33b 107b efab 9bda 8c42 0032 172f ...;.{.....B.2./
00000550: 48a7 e6e2 56bc 61b7 1795 4d2c 52da f66c H...V.a...M,R..l
00000560: fadc bc8e b40b 6072 e73d 6cef f784 0ab4 ......r.=l..... 00000570: 16e7 7905 7594 7915 63d1 8563 87f9 5f3a ..y.u.y.c..c.._: 00000580: 5557 2f22 d472 d6e8 3c82 a307 e42f 5356 UW/".r..<..../SV 00000590: c56b caa6 b964 25b4 8877 26b9 da7f 8482 .k...d%..w&..... 000005a0: 752f b765 6797 3000 bcdc f3d8 3400 a5bd u/.eg.0.....4... 000005b0: 1bed cac2 4959 99e7 71d0 1425 61c9 ee8e ....IY..q..%a... 000005c0: b1e9 c5ec 7940 db74 af17 5fb0 9378 23b6 ....y@.t.._..x#. 000005d0: bb39 96b0 c293 aeff 8f06 8f19 1739 f101 .9...........9.. 000005e0: b143 25ec 881b cc28 0c95 bc7f 8d56 8a97 .C%....(.....V.. 000005f0: fe11 be30 fc36 bfe4 2d30 b380 f53e 1db6 ...0.6..-0...>.. 00000600: 0b79 6df5 f09b b118 1320 6983 36a5 fe41 .ym...... i.6..A 00000610: 0826 0e46 16b8 a488 d530 c76e 86c8 3bde .&.F.....0.n..;. 00000620: 4a54 64fc ec7d e7fb bec7 fcdd dc05 db79 JTd..}.........y 00000630: 6b20 bd91 898e df95 8c76 d692 c13e 3ef1 k .......v...>>. 00000640: c4bb 706e 50b4 51f6 294c e043 9c1e f630 ..pnP.Q.)L.C...0 00000650: d7a6 79ef 9336 36aa 4a3c 713c 9218 e1d8 ..y..66.J<q<.... 00000660: e485 959a 6d00 d6ab 2e65 9214 1174 e255 ....m....e...t.U 00000670: 023f 646a 7f40 d7e6 f6b2 3a02 39bc c42a .?dj.@....:.9..* 00000680: 7614 15f3 7757 1f79 1829 8313 6610 749c v...wW.y.)..f.t. 00000690: f512 0083 5987 7c89 d375 cb27 77b0 30b6 ....Y.|..u.'w.0. 000006a0: 77ba fd64 e09e 876c e0d0 aafa 8644 9616 w..d...l.....D.. 000006b0: 1d8b 43fe 20c6 607e a5d8 ed03 ec44 3707 ..C. .~.....D7.
000006c0: e939 b1c9 10be d004 0c4b 115e 5cec 6154 .9.......K.^.aT
000006d0: ac59 5e35 f867 e19d 6d3e ce24 30ee 1cf6 .Y^5.g..m>.$0...
000006e0: 4d3c a3cb 86d9 3d3d 8682 7c16 3f5d 9664 M<....==..|.?].d
000006f0: 92ea e34f 6a11 3b32 6acc b007 354f 288f ...Oj.;2j...5O(.
00000700: dceb f3ca dad0 e1a4 d6fc 64c9 8913 7246 ..........d...rF
00000710: 9c28 7df3 5d13 7133 43ed fdc1 dee0 d01d .(}.].q3C.......
00000720: 69a9 d1b1 b347 c25d be7b b56d 6450 bed0 i....G.].{.mdP..
00000730: d0f7 6df2 9cb1 260a 15cd 30b9 dfca 53f2 ..m...&...0...S.
00000740: d863 4147 6290 5921 1e88 bbf9 5b01 5db8 .cAGb.Y!....[.].
00000750: adc2 7733 7500 d5f7 adff b274 2929 4e73 ..w3u......t))Ns
00000760: 996f 9821 9559 b7d3 e3fb 60c5 a746 f92b .o.!.Y......F.+ 00000770: 3108 14f4 5794 4397 45ac 36ab 9057 5b29 1...W.C.E.6..W[) 00000780: a7b1 0fa6 dbf5 677a a48f 5088 8b84 47b1 ......gz..P...G. 00000790: ae21 7a65 2639 9e11 3105 b2c3 f47a 3525 .!ze&9..1....z5% 000007a0: f5ea eeae 3627 aa67 58fb 7cd4 2a1d fa60 ....6'.gX.|.*..
000007b0: 2456 8555 3c5e 0c54 621d 4738 5945 171a $V.U<^.Tb.G8YE..
000007c0: 8bf9 1572 d991 25eb 10f0 00dd eb95 152b ...r..%........+
000007d0: a1a2 c489 b948 4e54 5f18 2dab 821a 6769 .....HNT.-...gi
000007e0: 0eb0 e12e 8abf a730 8374 6f94 6493 dc24 .......0.to.d..$
000007f0: 59b7 33fc 60c2 ec62 fc61 7b2c 468f 3ad6 Y.3...b.a{,F.:. 00000800: e41d 359b 748c 10bc 8992 e1dc 949f 1448 ..5.t..........H 00000810: 05f2 aae6 d1af db92 5f34 e4e6 95c4 b7c6 ........_4...... 00000820: e70c 1f1e 4c82 9c66 3428 ac3d 1c0f 813d ....L..f4(.=...= 00000830: c4b8 f5ff 1abf 9d50 4f93 b1a1 603d ae1d .......PO...=..
00000840: 5c65 543d be40 fdee 5b9a 1878 bd6c 4156 \eT=.@..[..x.lAV
00000850: 6861 5f7f bcbb a964 a8c9 37ca c49d 8219 ha_....d..7.....
00000860: 4a0f cb8d fb3c 4550 1fc4 d1b3 7f12 20c8 J....<EP...... .
00000870: 3b07 eb1c bef5 6afa 5367 01bf 24ff f947 ;.....j.Sg..$..G
00000880: 5909 59d8 95ad 3268 f877 1f8c f126 692d Y.Y...2h.w...&i-
00000890: 64ce 06c0 c69b 5da3 9587 0a61 3189 021c d.....]....a1...
000008a0: 0410 010a 0006 0502 54bd 2e46 000a 0910 ........T..F....
000008b0: 2b11 8a5f a15f 30b9 f525 0fff 4017 c159 +...0..%..@..Y
000008c0: 215f fe0c b09b 0f66 4c02 cc5d c587 b13f !.....fL..]...?
000008d0: 06d4 c119 5789 ad7b 706f f348 f966 7233 ....W..{po.H.fr3
000008e0: 3e8c 17c7 8e5f ca2a 2915 5b1e fa71 b0ac >.....).[..q..
000008f0: 7164 8b2c f467 ae06 364c 2391 eafc 2d12 qd.,.g..6L#...-.
00000900: fd94 9857 e1d5 ddef 746a 5f35 8795 40fe ...W....tj_5..@.
00000910: 7fa1 b7ec 6c4c 52e8 b518 22d1 b089 0d79 ....lLR..."....y
00000920: b6b5 1c0f ff2e a296 6f29 1925 7bbe cd06 ........o).%{...
00000930: ed44 5e9f b83b 4e8d 036a 84c0 4b8e 3d38 .D^..;N..j..K.=8
00000940: 4818 c642 6d84 d3c4 5d85 6b00 f160 8877 H..Bm...].k..`.w
00000950: cc58 94e0 a12c 59e4 f28b 72e0 c2ba d98a .X...,Y...r.....
00000960: cb33 f9b3 ac56 0950 0270 11e6 5572 99ea .3...V.P.p..Ur..
00000970: 0f2d 596c 2f68 a607 67d0 e658 48b3 dd6c .-Yl/h..g..XH..l
00000980: bfe6 654b 3550 6b39 5c70 5a47 b575 3e91 ..eK5Pk9\pZG.u>.
00000990: ecf5 6ac3 fbc2 6283 eecc 79a3 2403 8cfb ..j...b...y.$...
000009a0: 2b28 3a79 2448 cfc8 980e ff0c 85e5 9212 +(:y$H..........
000009b0: ba69 fa3f ee2a 0b91 f148 5ea6 0953 09d0 .i.?....H^..S..
000009c0: bf09 70ee b85c 393a 4303 ad8c 7584 790f ..p..\9:C...u.y.
000009d0: 7ec0 a104 d9bc 3cad 395f 49be a5a3 f6a8 ~.....<.9_I.....
000009e0: a66b cf5e 2426 8c6e 374d ae64 2082 212f .k.^$&.n7M.d .!/
000009f0: d544 b5a7 11d4 804a 8cd1 9a36 9830 80ee .D.....J...6.0..
00000a00: d03a e208 e1a0 756f c2a7 4229 7fec 2b0e .:....uo..B)..+.
00000a10: d703 378b 5f79 7718 76ee 5b92 53fb 370a ..7._yw.v.[.S.7.
00000a20: 82c4 36e1 6fec 822e 73a4 a9a5 5a44 7cae ..6.o...s...ZD|.
00000a30: dc11 1dd2 72bd 9a4b 9d02 54c6 c5df 2bd4 ....r..K..T...+.
00000a40: eebb 000a bc49 8e0a ea7e 22d8 5a1a 65aa .....I...~".Z.e.
00000a50: 2d9c 42ca 9386 b54a 450b dc83 c54b 4439 -.B....JE....KD9
00000a60: ee4a 149e 4358 9fdf a709 3d2c 3b79 4518 .J..CX....=,;yE.
00000a70: aba3 dc0b 30a9 2c69 9b22 fbe7 430d d057 ....0.,i."..C..W
00000a80: 9f1c f155 c8fb 1d74 8b6e 95d3 c68e 9987 ...U...t.n......
00000a90: 3ccb 1cd1 6d0c 7626 84d8 490c 33c9 2103 <...m.v&..I.3.!.
00000aa0: bf94 1afb fe12 3098 57dc 040b a298 c648 ......0.W......H
00000ab0: 6bb8 9a7f f64c ddaa 64b3 3de9 k....L..d.=.
Ding ding ding !!! @_az was right.
So, Certbot isn't parsing your /etc/os-release right because of that non-ascii character. That might be a tm (trademark) symbol. But, your entire os-release looks binary.
My stock Ubuntu 22 looks like
cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
(See the beginning 5052 is the PR in PRETTY from above)
xxd /etc/os-release
00000000: 5052
I am not sure what to recommend but at least we know why now.
You can rest assured, certbot is working fine.
Now I'm the one in the ****
What could have caused this? Should I format the server?
Is there any chance that /etc/os-release is a directory, rather than a file?
Can you run file /etc/os-release to see if it can identify what kind of data that file has?
I don't think so. But fair point to research it further. The xxd would error if directory
xxd /etc
xxd: Is a directory
Some text visible in their xxd output says Apache Software Foundation - a possible clue
is it binary content ?
cat /etc/os-release
??%? ?҉vq?ɱ$??kۉ?u??#ʵ??uW?0????I????;X>Hsfb?iJ?%ڹ??
?&??[i?E?t]? ??bRk??U??N??a?????<??_J1 ???Bo????[(?#?#?\?xP?3??J??2KjR[;l?[l.-?i>??^?CTn?v??T͌???0?? 1M???fjpNe?? ???p??G?C?"??.? ΅?ThjΘ39??\Y??K*(r?z?DH??K1?Ff??qs{?c ??-?1b??R????p|???yeGI?@?2?.C/T?" :km2s?-z?a%R+??H??#???d?&BtF?????4Cl骕???-rc?mѹ??\?A ???B?O?t?m?'?!??|R߫??UoO?a$&?z???&??a?M? YUGy9?c{eNޅ??W???pmS????~ ?(k???H[?#/???:;?????ϫe&?=?, Z?q??PO?0 ?T?n??>KFa_??J!#??Uoh5!? Vt??6?????5|+Ӆa???~H?:??/??z??@?#8?v??R???p??+???>?[?<??:??????/,
E??s?A??$?j?)??*??֠|.???İ?8D??%??db????]???d?f?prc[
8D?nw9?bg?z.??[2? ??}????=?@;??[??l??c]??8???*C?:??
;H~Q&?KQNfK? 9|e?$0_6Oq? ??r|?C???QL`?:??dic??Y????T?f?Z ?
g5???????L!N;<?}?O?x%???fs3?z?M?????=}?2#!???r?[?b??-???t?sa???????ނ+?/???5?"j?t?Ec
?J /?-Ĥ?:
??e??????QThe Apache Software Foundation (Package repository signing key) root@apache.org?7
!T?%???/?z%????'?5?9
?b?????4?n-?k?T?)È???@?SS?yDH??K~9??yz?c?]?x????B?Ƿ|
2??}??sa???*<>@ ?i????w)g?D^?X*?(??????Y??$?:?9b??+?~ ?LE?? ??&??g??M)???Y???;{ڌB2/H???V?a??M,R??l?ܼ??
r?=l??? ??yu?ycхc??_:UW/"?r??<???/SV?kʦ?d%??w&????u/?eg?0????4????IY??q?%a????y@?t?_??x#??9??????9??C%?( ???V????0?6??-0???>? ym?? i?6??&F????0?n??;?JTd??}????????yk ????ߕ?v֒?>>?ĻpnP?Q?)L?C??0צy?66?J<q<???䅕?m֫.e?t?U?dj@????:9??*v?wWy)?ft???Y?|??u?'w?0?w??d???l?Ъ??D??C? ?~????D7?9????
K^?aT?Y^5?g?m>?$0??M<?ˆ?==??|?]?d???Oj;2j̰5O(??????????dɉrF?(}?]q3C??????i?ѱ?G?]?{?mdP????m?&
?0???S??cAGb?Y!???[]???w3u?????t))Ns?o?!?Y????ŧF?+?W?C?E?6??W[)?????gz??P???G??!ze&9?1???z5%???6'?gX?|?*?$V?U<^
TbG8YE??rّ%????+??ĉ?HNT-??gi??.???0?to?d??$Y?3???b?a{,F?:??5?t?????ܔ?H??ѯے_4??ķ?? L??f4(?=?=ĸ????PO???=?\eT=?@??[?x?lAVha_???d??7?ĝ?Jˍ?<EP?ѳ ?;???j?Sg?$??GY Yؕ?2h?w??&i-d??ƛ]???
a1?
T?.F
+?_?0??%?@?Y!?
y???.??o)%{???D^??;N?j??K?=8H?Bm???]?k?`?w?X??,Y??r?ºي?3???Vd?,?Pp?Ur??-Yl/h?g??XH??l??eK5Pk9\pZG?u>???j???b???y?$??+(:y$H?Ș?
???i???*
??H^p?\9:C??u?y~??ټ<?9_I??????k?^$&?n7M?d ?!/?D??ԀJ?њ6?0???:?uo§B)?+?7?_ywv?[?S?7
??6?o?.s???ZD|???r??K?T???+??
?I?
?~"?Ze?-?Bʓ??JE
܃?KD9?J?CX?ߧ =,;yE???
?W??U??t?n??Ǝ??<??m 0?,i?"??C
v&??I
3?!????0?W?
Yes, mostly. Does the Apache Software Foundation string mean anything to you? I mean, I know who they are but why does it appear here?
What does this show? Might help explain why it's like that
ls -l /etc/os-release
root@ubuntu-s-1vcpu-2gb-intel-fra1-01:/var/certbot# ls -l /etc/os-release
lrwxrwxrwx 1 root root 21 Feb 16 16:02 /etc/os-release -> ../usr/lib/os-release
That's just like my ls -l
We cross-posted.
I installed couchdb then uninstalled it since. I need to make an API that uses an SQL database (phpMyAdmin) and also fetches data via couchDB(fauxton). To reduce the difficulty I uninstalled the time to solve the problem. So Apache comes from there.
Well, I don't know why a db install would modify os-release
You might try using a different ACME client. I'd suggest trying acme.sh. I don't know why your os-release file looks like it does and I don't know how to make Certbot avoid looking at it. I just looked at the acme.sh script and it does not view os-release
You could wait a bit to see if anyone else has a suggestion but that's all I have.
Ok, thanks to your expertise and your passion for what you do; I got an explanation and it's already not bad! it takes away a bit of the frustration of not being able to perform a procedure that normally is simple (and very well documented by the way). Thanks for the suggestion of acme.sh it opens a new track ![]()
I am tempted by this command to restore the file (corrupt?) but I prefer to wait for your opinion
sudo apt-get install --reinstall base-files
Your system is in an odd state for stock Ubuntu. Maybe intentionally. I am not sure what to say. Maybe others will.
@MikeMcQ Intentionally I don't think so, because I had problems installing couchdb and I think it may have created some complications. I had to delete it because the apt update && apt upgrade cron was returning errors related to couchdb. I fixed that by uninstalling couchdb. This server does not host anything special, it's just for testing (and making errors) because I wanted to discover the back-end part and it was also an opportunity to host an API that delivers data on human cognitive biases.
@MikeMcQ , @_az, @Osiris @rg305
My problem is solved! Congratulations to all, you have been extraordinary; attentive, super competent, I am starting my career and I hope that one day I will be as passionate and competent as you (I'll stop the compliments here, it might make you uncomfortable).
So I ran the command:
udo apt-get install --reinstall base-files
which allowed me to restore the corrupted file:
root@ubuntu-s-1vcpu-2gb-intel-fra1-01:/etc/nginx/sites-available# cat /usr/lib/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="Bugs : Ubuntu"
PRIVACY_POLICY_URL="Data privacy | Ubuntu"
UBUNTU_CODENAME=jammy
And finally I readapted the nginx configuration file a bit to run the command:
sudo certbot --nginx
You're amazing! ! TYVM ! ![]()