Flatpak error pulling runtime org.freedesktop.Platform - terminal

I'm on Ubuntu 16.04LTS, and I'm trying to install MonoDevelop through the Flatpak package.
I am almost done, only thing missing is the runtime. When I run the following command I get an error:
flatpak run com.xamarin.MonoDevelop
error: runtime/org.freedesktop.Platform/x86_64/1.4 not installed
Then I try to install it:
flatpak install gnome org.freedesktop.Platform//1.4
Installing: org.freedesktop.Platform/x86_64/1.4 from gnome
Receiving delta parts: 0/9 6.1 kB/s 98.3 kB/120.1 MB 5 hours 25 minutes
Receiving delta parts: 0/9 25.1 kB/s 426.0 kB/120.1 MB 1 hours 19 minut
Receiving delta parts: 0/9 34.9 kB/s 627.5 kB/120.1 MB 57 minutes 7 sec
Receiving delta parts: 0/9 34.8 kB/s 660.3 kB/120.1 MB 57 minutes 17 se
Receiving delta parts: 0/9 48.6 kB/s 971.6 kB/120.1 MB 40 minutes 52 se
Receiving delta parts: 0/9 84.5 kB/s 1.8 MB/120.1 MB 23 minutes 20 seconds remaining
error: While pulling runtime/org.freedesktop.Platform/x86_64/1.4 from remote gnome:
Error resolving 'sdk.gnome.org': Temporary failure in name resolution
Sometimes it doesn't show "Receiving delta parts", it goes straight to the error.
Maybe the repository for this runtime is broken, or the server! Can someone point me in the right direction?

The issue was in the file /etc/resolv.conf which had the nameserver 127.0.0.1, I changed it to 8.8.8.8 so I could carry on with the runtime installation.
You can also try to run: sudo service network-manager restart
I think that will reset the 127.0.0.1 to 127.0.1.1, otherwise change it manually as I said to 8.8.8.8 and it'll work.

Put "sudo" before all commands
Exemples:
$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo sudo flatpak install
or
$ flathub org.gtk.Gtk3theme.deepin

Try running as root.
Sometimes the problem can be there.

Related

Dronekit-sitl fails to bind on default port 5760

I have dronekit-sitl installed in a python3 virtual environment on my Windows 10 machine and have used it before by running dronekit-sitl copter with no issues. However, as of today I am running across what seems to be a permission issue when trying to execute the ArduCopter sitl.
$ dronekit-sitl copter
os: win, apm: copter, release: stable
SITL already Downloaded and Extracted.
Ready to boot.
Execute: C:\Users\kyrlon\.dronekit\sitl\copter-3.3\apm.exe --home=-35.363261,149.165230,584,353 --model=quad -I 0
SITL-0> Started model quad at -35.363261,149.165230,584,353 at speed 1.0
SITL-0.stderr> bind port 5760 for 0
Starting sketch 'ArduCopter'
bind failed on port 5760 - Operation not permitted
Starting SITL input
Not sure what might have triggered a new operation permission issue, and I tried to start over with a fresh Python environment, but even after a complete PC shutdown, I am still having the error as shown above.
It turns out that having docker on my system was the culprit and excluding the port I was attempting to use as mentioned in this SO post that led me to this github issue. Running the command in an elevated terminal:
netsh interface ipv4 show excludedportrange protocol=tcp
Provided me the results of the following excluded ports:
Protocol tcp Port Exclusion Ranges
Start Port End Port
---------- --------
1496 1595
1658 1757
1758 1857
1858 1957
1958 2057
2058 2157
2180 2279
2280 2379
2380 2479
2480 2579
2702 2801
2802 2901
2902 3001
3002 3101
3102 3201
3202 3301
3390 3489
3490 3589
3590 3689
3693 3792
3793 3892
3893 3992
3993 4092
4093 4192
4193 4292
4293 4392
4393 4492
4493 4592
4593 4692
4768 4867
4868 4967
5041 5140
5141 5240
5241 5340
5357 5357
5358 5457
5458 5557
5558 5657
5700 5700
5701 5800
8005 8005
8884 8884
15202 15301
15302 15401
15402 15501
15502 15601
15602 15701
15702 15801
15802 15901
15902 16001
16002 16101
16102 16201
16202 16301
16302 16401
16402 16501
16502 16601
16602 16701
16702 16801
16802 16901
16993 17092
17093 17192
50000 50059 *
* - Administered port exclusions.
Turns out that docker or possibly Hyper-V excluded the range that included 5760:
5701 5800
And as mentioned from the github issue, I probably resolved this issue before after a set number of restarts that incremented the port ranges, or possibly got lucky in the past starting dronekit-sitl before docker ran on my system.
Either way, to resolve this issue of Operation not permitted, running the command as admin:
net stop winnat
net start winnat
solved the issue with dronekit-sitl without having to specify a different port besides the default 5760.

Handbrake-CLI on Synology NAS

I installed Docker on my Synology NAS (DS415+) and tried to run the handbrake-cli (via this package) over ssh.
However, something seems to be broken. I get the following error message after a simple sudo docker run -d supercoder/docker-handbrake-cli -i ~/_inProgress/input/movie.mkv -o ~/_inProgress/output/test.mp4 (I shortened the error message for readability):
- hb_init: starting libhb thread
- HandBrake 0.10.1 (2015030800) - Linux x86_64 - https://handbrake.fr
- 4 CPUs detected
- Opening /var/services/homes/xxx/_inProgress/input/movie.mkv...
- CPU: Intel(R) Atom(TM) CPU C2538 # 2.40GHz
- Intel microarchitecture Silvermont
- logical processor count: 4
- OpenCL: library not available
- hb_scan: path=/var/services/homes/xxx/_inProgress/input/movie.mkv, title_index=1
- libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /var/services/homes/xxx/_inProgress/input/movie.mkv/BDMV/index.bdmv
- libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /var/services/homes/xxx/_inProgress/input/movie.mkv/BDMV/BACKUP/index.bdmv
- libbluray/bluray.c:2182: nav_get_title_list(/var/services/homes/xxx/_inProgress/input/movie.mkv) failed
- bd: not a bd - trying as a stream/file instead
- libdvdnav: Using dvdnav version 5.0.1
- libdvdread: Encrypted DVD support unavailable.
- libdvdread: Can't stat /var/services/homes/xxx/_inProgress/input/movie.mkv
- No such file or directory
- libdvdread: Could not open /var/services/homes/xxx/_inProgress/input/movie.mkv
- libdvdnav: vm: failed to open/read the DVD
- dvd: not a dvd - trying as a stream/file instead
- hb_stream_open: open /var/services/homes/xxx/_inProgress/input/movie.mkv failed
- scan: unrecognized file type
- libhb: scan thread found 0 valid title(s)
- No title found.
- HandBrake has exited.
I followed this blog post originally and got the same message there.
Executing the same thing on my desktop works without any problems.
Anyone got an idea?
When running the docker instance, your input and output file do not exist in the container. You need first to mount the input and output directories of you file system as volumes (as shown in the blog post you shared)
-v ~/_inProgress/output/:/outout:rw
-v ~/_inProgress/input/:/input:ro
And then you use those paths in the options:
-i /input/<file>
-o /output/<file>
Good luck!

git-cola no response after installation whose installer is made by pynsist upon Ubuntu

I tried to use pynsist to make a windows installer for git-cola from my Ubuntu 15.10 desktop.
I just git clone git-cola project and setup the installer according to the instruction.
Seems OK for pynsist pynsist.cfg.
Here is snippet at the end:
Output: "/home/wni/gitworkspace/git-cola/build/nsis/git-cola_2.7.exe"
Install: 6 pages (384 bytes), 4 sections (1 required) (4192 bytes), 903 instructions (25284 bytes), 609 strings (9986 bytes), 1 language table (334 bytes).
Uninstall: 2 pages (128 bytes),
1 section (1048 bytes), 11 instructions (308 bytes), 57 strings (896 bytes), 1 language table (194 bytes).
Datablock optimizer saved 38103 bytes (~0.0%).
Using lzma compression.
EXE header size: 88064 / 73216 bytes
Install code: 7522 / 40556 bytes
Install data: 39171671 / 87321329 bytes
Uninstall code+data: 9216 / 14775 bytes
CRC (0xCB9A7C26): 4 / 4 bytes
Total size: 39276477 / 87449880 bytes (44.9%)
Installer written to build/nsis/git-cola_2.7.exe
And, here is pynsist.cfg just as default:
[Application]
name=git-cola
version=2.7
entry_point=cola.main:shortcut_launch
icon=share/git-cola/icons/git-cola.ico
[Python]
version=2.7.10
bitness=32
[Include]
packages=cola
PyQt4
qtpy
sip
files = share/
Then, I copy build/nsis to one WIN7 32 bit desktop, and run git-cola_2.7.exe to open the installer.
Everything seems OK till the end indicating git-cola is successfully installed upon the machine.
However, I see there is no icon on the desktop(maybe something wrong yet), then, I route to the installation folder and double click "git-cola.launch.pyw", but no response...
Here is the folder content for git-cola:
Here is folder for pkgs:
I see .dll or .exe files are there under each sub folder then.
updated:
I see in the pynsist log that : qtpy.PythonQtError: No Qt bindings could be found
So, seems pynsist didn't add python to PATH and pkgs folder under installation to PYTHONPATH.
Then, I add python executable to PATH and pkgs to PYTHONPATH, after that, issue still there.
It's successful for me to import PyQt4 within python interpreter.
However, failed to import Qt from PyQt4...
Here is content for pkgs/PyQt4:
So, where is wrong with my setup, is there anything wrong with any configuration?
Thanks.
Wesley

Using htaccess to configure Apache and Passenger for Ruby

I've been trying to install a ruby app called Openproject on my bluehost account. I followed the Openproject guide.
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/
I updated ruby and node using rbenv and nodenv. I was able to follow up to the section "Finish the Installation of OpenProject," and I didn't get any error up to this point.
However, I wasn't sure how to tackle the section "Servce OpenProject with Apache and Passenger." The guide asks to configure apache to load the right passenger, but Bluehost doesn't provide access to httpd.conf. Then I found the guide for Ruby from Bluehost indicating that I can use .htaccess to configure.
https://my.bluehost.com/cgi/help/rails
I copied the .htaccess from the guide and put it in openproject/public folder.
However, if I open mydomain.com/openproject, it displays the list of files inside openproject folder. If I open mydomain.com/openproject/public, I get the error below. I also tried to move .htaccess to openproject folder instead of openproject/public, but I get the same result.
I noticed a couple of things from the error message, but I'm not sure how to fix them.
1. The error indicates "No such file or directory - config.ru," even though openproject folder has the file config.ru.
2. The error indicates that Application root is /home5/account/public_html. Shouldn't it be /home5/account/public_html/openproject?
Anyways, here's the entire error message.
Ruby (Rack) application could not be started
These are the possible causes:
There may be a syntax error in the application's code. Please check for such errors and fix them.
A required library may not installed. Please install all libraries that this application requires.
The application may not be properly configured. Please check whether all configuration files are written correctly, fix any incorrect configurations, and restart this application.
A service that the application relies on (such as the database server or the Ferret search engine server) may not have been started. Please start that service.
Further information about the error may have been written to the application's log file. Please check it in order to analyse the problem.
Error message:
No such file or directory - config.ru Exception class:
Errno::ENOENT Application root: /home5/account/public_html
Backtrace: # File Line Location 0
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 675 in
lstat' 1
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 675 in
lower_privilege' 2
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 198 in
prepare_app_process' 3
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
156 inblock in initialize_server' 4
/etc/httpd/modules/passenger/lib/phusion_passenger/utils.rb 563 in
report_app_init_status' 5
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
154 ininitialize_server' 6
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
204 in start_synchronously' 7
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
180 instart' 8
/etc/httpd/modules/passenger/lib/phusion_passenger/rack/application_spawner.rb
129 in start' 9
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
253 inblock (2 levels) in spawn_rack_application' 10
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
132 in lookup_or_add' 11
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
246 inblock in spawn_rack_application' 12
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
82 in block in synchronize' 13 prelude> 10:insynchronize' 14
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server_collection.rb
79 in synchronize' 15
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
244 inspawn_rack_application' 16
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
137 in spawn_application' 17
/etc/httpd/modules/passenger/lib/phusion_passenger/spawn_manager.rb
275 inhandle_spawn_application' 18
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
357 in server_main_loop' 19
/etc/httpd/modules/passenger/lib/phusion_passenger/abstract_server.rb
206 instart_synchronously' 20
/etc/httpd/modules/passenger/helper-scripts/passenger-spawn-server 99
in ` '
Powered by Phusion Passenger, mod_rails / mod_rack for Apache and Nginx.

upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23

How can I diagnose this error Command /bin/sh failed with exit code 23
sent 130971 bytes received 42 bytes 262026.00 bytes/sec
total size is 130816 speedup is 1.00
rsync -auv "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" "/Users/jinteki/Library/Developer/Xcode/DerivedData/MyApp-xyz/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks"
building file list ... rsync: link_stat "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
Command /bin/sh failed with exit code 23
I had this same issues and I cleaned the Build Folder via:
Product -> hold ALT pressed -> Clean Build Folder
Removing derived data works too
Xcode -> Preferences -> Locations -> tap on the derived data arrow -> Drag the derived data folder to trash
I had the same and nothing helped. I deleted the Pods folder from my project and ran pod install again. It worked…

Resources